how to hide qml source with quick compiler?
-
hello~
i created simple project (qt5.9.7). and used 'CONFIG += qtquickcompiler'.
everything is ok, but when i opened exe binary with text editor.
i can saw my qml source. i don't want to see the source.
how to do that?below is notepad text data.
=import QtQuick 2.9
import QtQuick.Controls 2.2ApplicationWindow {
visible: true
width: 640
height: 480
title: qsTr("Tabs")SwipeView { id: swipeView anchors.fill: parent currentIndex: tabBar.currentIndex Page1Form { } Page2Form { } } footer: TabBar { id: tabBar currentIndex: swipeView.currentIndex TabButton { text: qsTr("Page 1") } TabButton { text: qsTr("Page 2") } }
}
?P a g e 1 F o r m . u i . q m l w?P a g e 2 F o r m . u i . q m l f q t q u i c k c o n t r o l s 2 . c o n f Z\ m a i n . q m l i쨧8? & Q i쨧8? | i쨧8? | -
Another strategy is to put all your business logic in C++ and possibly do checksums on the QML files to detect if they have changed. If the desire is protecting against changes to the binary itself. It would definitely require some thought to implement this in a way that is not a nightmare to maintain.
-
Another strategy is to put all your business logic in C++ and possibly do checksums on the QML files to detect if they have changed. If the desire is protecting against changes to the binary itself. It would definitely require some thought to implement this in a way that is not a nightmare to maintain.
@fcarney
Thanks. your reply is appreciated, but
I do not want to check that the binaries are modified.
I just want to prevent the source open.
If using the Quick Compiler, will the source be compiled and included in the binaries?
Why is the original source exposed to the binary?
Perhaps I am misunderstanding the Quick Compiler.