I am not sure I understand, but if you instantiate WindowA and WindowB in another compenent but need access to them from outside that component, then this component must provide the access, e.g. something like
X.qml
Item {
property Item windowA: WIndowA {}
property Item windowB: WindowB {}
}
Item {
property Item windowA: WIndowA {}
property Item windowB: WindowB {}
}
To copy to clipboard, switch view to plain text mode
main.qml
Item {
X { id: x }
anchors.right: x.windowA.right
}
Item {
X { id: x }
anchors.right: x.windowA.right
}
To copy to clipboard, switch view to plain text mode
The real question will be, however, is this is a good design. A component is a natural encapsulation unit, it shouldn't be necessary to take things out of it.
Cheers,
_
Bookmarks