Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-89292

Compiled qml sources visible inside executable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.15.2
    • QML: Compiler
    • None
    • Qt Creator, Visual Studio with Qt plugin
    • All

    Description

      If a qml project is compiled with the Qt Quick compiler enabled the corresponding myfile_qml.cpp is correctly generated but inside the executable, using a normal text editor like Notepad+, is possible to see the full qml sources. Try to compile the project in attach with Qt Quick compiler enabled (is enabled by default). The compilation results are the two files main_qml.cpp and main_qml.o as consequence of compilation of main.qml. However if you open the qmlTest.exe with notepad+ you can see find inside the exe the full main.qml source clearly visible:

      import QtQuick 2.12
      import QtQuick.Window 2.12
      Window {
       width: 640
       height: 480
       visible: true
       title: qsTr("Hello World")
      }
      

      I verified this issue with Qt Creator using Mingw and android compilation but it also appears using Visual Studio with Qt Plugin.

       
      Please note: yesterday I reported the same bug but in the Qt Creator section here. After checked the Qt source I understood the problem is inside the Qt package itself instead of the IDE.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              falsinsoft Fabio Falsini
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes