Solved Loading qml binary in source code
-
Is it possible to use qml binary in source code to load component instead of .qml file ?
-
what do you mean by qml binary ? Can you add some more information ?
-
I am rephrasing problem statement.
Currently we are copying .qml file into Release build for compilation purpose on embedded device.
We want to protect qml files since it is in readable format.Could you please suggest better way to load qml files in source code so that we can avoid copying those files on embedded device ? -
Hi @Satyakaama
are you aware of Qt's resource system?
http://doc.qt.io/qt-5/resources.htmlyou can add your qml files to one of those, than they get compiled and added to the binary file -> no need to copy the qml-files to the target device.
-
In addition to what @J-Hilk suggested when you create default quick application it creates resource file. You can see Qml file in side resource file itself.
-
@J-Hilk @dheerendra Thanks for information.App on Target device is working without copying qml files since all files are present in resource file system.
-
@Satyakaama
Great!
Don't forget, when your question is sufficiently answered, to set the topic to solved ;-)