I have a StackView which includes
initialItem: Qt.resolvedUrl(“file.qml”)
In the root Item in file.qml, I can do
Stack.view.push(Qt.resolvedUrl(“another.qml”)).
But in the root Item of another.qml, a reference to Stack.view gives the error:
ReferenceError: Stack is not defined
Shouldn’t the StackView’s attached properties be visible in any QML file loaded by the StackView?
↧