Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.0.0
-
None
Description
When Qt.createComponent(...) is invoked in QML, the created component is automatically parented to the running QML engine. This prevents the component object from being collected even if there are no javascript references to the object. To allow the object to be cleaned up when no longer in use, the automatic parenting will be removed. It is therefore necessary to allow the creator of the component to optionally specify a parent object directly, to prevent unwanted collection.
Attachments
Issue Links
- is required for
-
QTBUG-24841 Remove automatic parenting in Qt.createComponent
-
- Closed
-
For Gerrit Dashboard: QTBUG-24840 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
20429,2 | Allow parent to be specified for Qt.createComponent | master | qt/qtdeclarative | Status: MERGED | +2 | 0 |