Hi,
I develop a android app using Qt. I have a StackView in main.qml. I use this StackView push other page. I have page A, B, C, D...
Now, in main StackView push A page, in A push to B, in B push to C... ( A->B->C ) When in page C, I want to pop page A not B.
How to I do this?
main.qml
{
StackView {
id: stackView
anchors.fill: parent
}
Button { onClicked: stackView.push("qrc:/A.qml") }
}
main.qml
{
StackView {
id: stackView
anchors.fill: parent
}
Button { onClicked: stackView.push("qrc:/A.qml") }
}
To copy to clipboard, switch view to plain text mode
A.qml
{
Button { onClicked: stackView.push("qrc:/B.qml") }
}
A.qml
{
Button { onClicked: stackView.push("qrc:/B.qml") }
}
To copy to clipboard, switch view to plain text mode
B.qml
{
Button { onClicked: stackView.push("qrc:/C.qml") }
}
B.qml
{
Button { onClicked: stackView.push("qrc:/C.qml") }
}
To copy to clipboard, switch view to plain text mode
C.qml
{
Button { onClicked: // I want to pop to page A not B }
}
C.qml
{
Button { onClicked: // I want to pop to page A not B }
}
To copy to clipboard, switch view to plain text mode
Thanks!!!
Bookmarks