Unsolved Organising order of children of QML Component from C++ . How?
-
Hello all!
Just solved this issue and need now to be able to put QML Component created from C++ in special place. For example I have Column and I need to place new Child between Child1 and Child2 and after this delete Child 3:* RootObject(QtQuickColumn) * Child 1 * Child 2 * Child 3
The question is - how to be able to handle order of children of QML Component from C++?
-
I'll just leave those links for you :
https://doc.qt.io/qt-5/qtquick-bestpractices.html#interacting-with-qml-from-c
http://doc.qt.io/qt-5/qtqml-cppintegration-overview.html#interacting-with-qml-objects-from-c
https://youtu.be/vzs5VPTf4QQ?t=23m20sI think you are on a wrong path trying (and struggling) to instantiate and access QML components from c++.