Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.8.x
-
qt/9cfac2e38cde24a2fbca4c1cebcf7a771443894a
Description
Trying to align a rectangle with the current item inside a ListView, I discovered that qt would segfault whenever I called mapToItem on the listview's contentItem.
Backtracing I see that this is caused by QDeclarativeEngine::contextForObject(ptr_to_listViewContentItem) returning 0, which is dereferenced in QDeclarativeItem::mapToItem.
See the attached minimal example.