Hiding .qml files for deployment
Unsolved
QML and Qt Quick
-
I have a project that I want to deploy. I've ran the windeplyqt.exe and my .exe works. However, windeplyqt also added .qml files that are part of QT in the build directory(like in the screenshot). My .exe doesnt't work if I remove these .qml files but I don't want them to be exposed out in the executable's directory. So, is there a way to embed these into the .exe or another way to hide them?
-
Hi @akilic,
You need to add your .qml files to the Resource Collection Files (.qrc) so this files are built into the binary.
You can find more details in this example: https://doc.qt.io/archives/qt-5.9/qtquickcontrols2-chattutorial-example.htmlRegards