Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
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 ?
are you aware of Qt's resource system?
you 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.
Don't forget, when your question is sufficiently answered, to set the topic to solved ;-)