Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

[SOLVED] Add (and change) a component in a placeholder

$
0
0
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.

Viewing all articles
Browse latest Browse all 4972

Trending Articles