Hi,
If I understood you correctly you will need qqmlcomponent [qt-project.org] to create component from C++ side, then after beginCreate [qt-project.org] cast it to QQuickItem and set it’s parent as per your needs.
It seems to be what I was looking for. I just figured out the difference between a parent (in the QObject’s parent hierarchy) and a visual parent, and thus use setParentItem().
Thank you for your help.
↧