how to make button push to another qml file
-
Hi @trustman and Welcome
If you do not want a container likeStackView
then you can do it simply by using a Loader. It has source property which you can use to load a particular QML file. Changing the url will unload the previous component and load the new one. Check out the example there.
Now to make this work withButton
you just have to set theLoader
'ssource
onButton
's click event. Eg.Button { text: "MyButton" onClicked: loader.source = "MyFile.qml" //loader = id of Loader }
-