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

Workaround for the static nature of QML? Dynamically structured UI - by the end user, during runtime?

$
0
0
As Tomma said, you can use dynamic object management to create and destroy visual objects at runtime. You can dynamically add or remove visual objects from the scene at runtime, simply by creating a visual object (with Component.createObject()) and giving it a visual parent. Note that QObject parent and visual parent are different concepts, see the docs for more in-depth discussion on that. But basically, by giving a newly created visual object, a visual parent, it then gets added to the visual scene and will be rendered. Thus, you can dynamically change your UI at runtime. Cheers, Chris.

Viewing all articles
Browse latest Browse all 4972

Trending Articles