i’m working on a project with my team.
My job is to create a Gui with QML and C++ for an Embedded System.
I have for each View a qml file.
But now i want to navigate between them.
This mean when i’m clicking on a Button, the view should switch.
Every View will have a back button, so i could go back to my Main View.
Is this possible in qml?
If not i have to solve it with c++
You can create a class deriving from
QDeclarativeViewin C++ and use:to change the qml file that is currently displayed. You can than call this method multiple times when a button is clicked.
There is also a solution using QML only. Take a look at the Loader element: