Change View?
-
Hello,
How can i change view? new pages, QML
i try to this here:
Item { width: 200; height: 200 Loader { id: pageLoader } Button{ id: btn1 text: "ChangeView Page2" onClicked: pageLoader.source = "Page2.qml" } }
But the View will overlap the MainView.
I have 2 files.
Main.qml and Page2.qmlThanks for your time
-
Maybe you could use a PageStack:
https://api-docs.ubports.com/sdk/apps/qml/Ubuntu.Components/PageStack.htmlYou can pile pages or clear it and push a single page (not recomended)
-
@CiberSheep Thanks, PageStack works fine