Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.3
-
1a0c2fb5bdaed175c9d9472b0658f93214572d4d (qt/qtdeclarative/dev)
Description
Code like this results in null value in data after an object held in contextData (context property) has been destroyed:
property var data: contextData || 0
onDataChanged: console.log(data)
If contextData is set to nullptr, this results in 0 instead which seems more valid.
Attachments
For Gerrit Dashboard: QTBUG-76346 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
266869,3 | When setting a QObject as context property reset it when it's destroyed | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |