How to deploy a qml application? What do I do with the modules?
-
Hello all,
I'm currently trying to develop a QML application. I'm working with Qt5 and Qml, more specifically Qt5.12. I developed a really nice and simple app and everything is working perfectly. However, regarding the deployment of this application:
- Do I need to have these Qml modules within my installation directory?
- If so, can I "compile" the Qml files ahead of time so I don't need to include them within my installation directory?
- Furthermore, is it possible to direct the executable to look at a particular folder in order to look for the needed qml files?
Danke schon,
Adrian
-
No
windeployqt and macdeployqt manage their deployment so that you do not need to worry about them.
-
You haven't stated which OS you wish to deploy on.
I'll assume you're using Windows, as am I, so the following method works for me, albeit a little tedious initially;
-
Ahh apologies I will be initially deploying to Windows and then Linux, soz Mac.
Thanks for the link, so it does confirm my original thinking about needing to have the Qml files within the main directory.
-
Hi,
Do you mean your own QML code or the one from Qt ?
If your own, you are usually better using Qt's resources system so you can embed it in your executable. -
No
windeployqt and macdeployqt manage their deployment so that you do not need to worry about them.