Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. how to hide qml source with quick compiler?
QtWS25 Last Chance

how to hide qml source with quick compiler?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 423 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    devj
    wrote on last edited by devj
    #1

    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.2

    ApplicationWindow {
    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? | 

    1 Reply Last reply
    0
    • fcarneyF Offline
      fcarneyF Offline
      fcarney
      wrote on last edited by
      #2

      Code Protection

      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.

      C++ is a perfectly valid school of magic.

      D 1 Reply Last reply
      0
      • D Offline
        D Offline
        devj
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • fcarneyF fcarney

          Code Protection

          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.

          D Offline
          D Offline
          devj
          wrote on last edited by devj
          #4

          @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.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved