Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
None
-
5.4.0, 5.11
-
None
Description
Run the QML file:
import QtQuick 2.0 import QtQuick.Controls 1.2 ApplicationWindow { id: root width: 600 height: 600 visible: true QtObject { id: parentObject } Component { id: childObjectComponent QtObject {} } Component.onCompleted: { childObjectComponent.createObject(parentObject, {}) } }
Warning appears:
"QQmlComponent: Created graphical object was not placed in the graphics scene."
What's wrong in dynamic creation of non-Item objects?