Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

StackView attached properties not visible in pushed objects

$
0
0
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?

Viewing all articles
Browse latest Browse all 4972

Trending Articles