Qt 6.11 is out! See what's new in the release
blog
Qml component storage
General and Desktop
2
Posts
2
Posters
700
Views
1
Watching
-
What is stored in a variable when a qml component is assigned to it?
@var x=Qt.createComponent("Rect.qml").createObject(parent, {x: mouseX, y: mouseY})
@what is stored in x?
-
Hi,
From the documentation of "createComponent":http://qt-project.org/doc/qt-4.8/qml-qt.html#createComponent-method you can see it returns a Component object. So x will point to that component.