If you just want to display different qml components on the same area, have a look at the loader qml type. You can set the src for the loader component when hitting the button. For some types (like a dialog) you will have to also call visible = true or open() in the loaded item. You can access a src in the loader with loaderName.item.
Check out the example in the documentation:
https://doc.qt.io/qt-5/qml-qtquick-loader.html#details
After setting the source like in the example, you can set properties in the loaded qml with pageloader.item.<PROPERTY NAME>. replace <PROPERTY NAME> with the name of the property in your qml file.
-
Unsolved QML - Stackview - REPLACE transition
QML and Qt Quick • • TMJJ001 -
Unsolved Sliding objects animation
QML and Qt Quick • • Mark81 -
Solved Issues with stackview
General and Desktop • • Qjay -
Unsolved Help on states and transitions
QML and Qt Quick • • Mark81