Set global component by ID. How?
-
Hello all!
I need to make QML component available from anywhere by ID. Is there any way?
For example:StackView { id: oStackView; width: parent.width; height: parent.height; anchors.top: parent.top; anchors.bottom: parent.bottom; anchors.left: parent.left; anchors.right: parent.right; }
and from any *.qml file access to it something like this from JS:
... oStackView.pop(); ...