I have an Component that I want to add content to dynamically:
MyThing.qml:
Item{
Rectangle {
id: r1
}
}
main.qml
MyThing {
id: c1
}
Run Code Online (Sandbox Code Playgroud)
In the next line of code in main.qml how would I dynamically add a child rectangle to r1 in c1?
qml ×1