Question: how to run qml file?
Answer: Creating and Running QML Projects To display the graphical scene defined by the QML document, it may be loaded with Qt Creator. For simple UI files such as this one, select File > New File or Project > Applications > Qt Quick UI from within Qt Creator. Pressing the green Run button runs the application.