I have a reusable item which looks like this:
Reusable.qml:
Flickable {
CustomCppComponent {
id: customComponent
}
}
Now I'd like to instantiate it with some extra child:
Main.qml:
Item {
Reusable {
Rectangle {
id: rect
anchors.fill: parent
}
}
}
But I want Rectangle
to be placed as a child of CustomComponent
so the equivalent would be:
Main.qml:
Item {
Flickable {
CustomCppComponent {
id: customComponent
Rectangle {
id: rect
anchors.fill: parent
}
}
}
}
How do I do that?