QML source code visible in executable.
-
-
Hi and welcome to devnet,
You can use Qt's resource system. It's described "here":http://qt-project.org/doc/qt-5/qtquick-deployment.html
Hope it helps
-
Hi,
Thank you for your advice, it's good to be here.
I have tried using this method but the source of the qml file is still readable from inside the executable with a text editor. I does however compile all the c++ code and and qml together into a self contained executable.
Is there a method that with encode the plain text of the qml file so simple viewing of the executable would not reveal the full qml source code.
My application uses some c++ but most of the logic and interface is qml, so I would prefer it to be obscured in some way.
Kind regards,
Martin.
-
Hi,
The only solution for this currently is to use "QtQuickCompiler":http://doc.qt.digia.com/QtQuickCompiler/. But unfortunately this is not available in Qt Open Source. If you have an enterprise license you can use it.