Details
-
Suggestion
-
Resolution: Unresolved
-
P4: Low
-
4.7.0
-
None
-
I'm developing on a MeeGo Trunk (which currently has Qt 4.7.0)
Description
If an object created via createObject() is passed a parent, and then later reparented, the object will still be destroyed when the original parent is destroyed.
I did find that by initially passing in some other parent (like the toplevel scene that is known to never be destroyed till the app is exiting), and then just immediately set the parent to the target you intended, that this bug is not expressed.
I'm attaching a qml file that demonstrates this.
Attachments
Issue Links
- relates to
-
QTBUG-64546 Instantiator: provide a way to set the QObject parent of the objects it creates
- Reported
-
QTBUG-17286 There is no parent property in QtObject-based QML elements
- Open
-
QTBUG-60121 Row and Column Repeater children have wrong QObject parent
- Closed