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.
Attachments
For Gerrit Dashboard: QTBUG-29572 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
60888,4 | Validate qmlEngine() in QDeclarativeItem::mapToItem() function. | 4.8 | qt/qt | Status: MERGED | +2 | 0 |