Is it possible to give a QML file to a Qt app executable?
-
Hello !
Is it possible to give a QML file to an executable ? For example, I have my Qt app with the backend and I want to modify the UI without compiling the app again. Thanks to this, a team member can use Qt Design studio to create and modify the UI and an other can use Qt Creator to implement the backend and simple UI.
"Was Qt Design studio created to divide front and backend?" Yes but the pre-visualisation is not working well, it differs to the final version (build app) that's why I want to give the qml file to the executable.
Thanks !
-
Yes, you can load QML files from disk. Common convention is to compile QML into the app using QRC (resources) but you don't have to do it if you don't want to. You will need to change your app code to load QMLs from disk, though.
-
Hello !
Is it possible to give a QML file to an executable ? For example, I have my Qt app with the backend and I want to modify the UI without compiling the app again. Thanks to this, a team member can use Qt Design studio to create and modify the UI and an other can use Qt Creator to implement the backend and simple UI.
"Was Qt Design studio created to divide front and backend?" Yes but the pre-visualisation is not working well, it differs to the final version (build app) that's why I want to give the qml file to the executable.
Thanks !