I'm trying to display a page after clicking a button in qt quick, simple enough right?
The main.qml is essentially just
ApplicationWindow {
StackView {}
id: stackView
anchors.fill: parent
initialItem: Pane {
id: pane}
x: 0
y: 0
Mainpane {
anchors.right: parent.right}
anchors.rightMargin: 0
anchors.left: parent.left
anchors.leftMargin: 0
Where MainPane is just a button that pushes the page StackedPage.qml to the stack.
My question is, how do I push another page, say it's called SubPage.qml to the stack from StackedPage.qml?
Do I need to create another stack in StackedPage.qml or can I push it to the main stack from main.qml?
EDIT:
So I found out that my stackView from my main page is carried through each page, so to transition between pages, I just need to pop and push.
Bookmarks