Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.7.0
-
None
-
linux, maemo, symbian
-
250545f7996927fa151097857179b5895010506b
Description
When creating an object dynamically, using Qt.createComponent(parent), the object's parent is set just after classBegin() and componentComplete() methods are called. While declaring it statically, the parent is set before classBegin() method.
Wouldn't it be better if the parent is set before classBegin() method also when it's created dynamically? This would avoid corner cases in the C+ side, since when classBegin() method is called, the parent is already set (if it's not null) regardless the object creation mechanism.
Related thread: http://lists.trolltech.com/pipermail/qt-qml/2010-August/000906.html