Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.0.0
-
None
Description
When using a QtObject inside an item, and then we call a function in the Component.onDestruction handler of that item, we get a crash. This happens because the QDeclarativeContextData engine has been invalidated before reaching QDeclarativeExpressionPrivate::evalFunction.
The sample code zip also contains a patch, which basically consists on emitting the destruction signal before invalidating children contexts in QDeclarativeContextData::invalidate.
Attachments
For Gerrit Dashboard: QTBUG-22535 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
9437,2 | Emit destruction signal before child contexts are destroyed. | master | qt/qtdeclarative | Status: MERGED | +2 | 0 |