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 get rid of QtQuick and QGraphicalEffects folders on app final release?
Forum Update on Monday, May 27th 2025

How to get rid of QtQuick and QGraphicalEffects folders on app final release?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
7 Posts 4 Posters 1.1k 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.
  • oria66O Offline
    oria66O Offline
    oria66
    wrote on last edited by
    #1

    Hi.

    In my last project, I noted something that bothers me. When I compile the final executable on the console with:

    windeployqt --release --qmldir <MyQMLFiles> PathToExecutable
    

    I got these files:

    0_1553298010884_Anotación 2019-03-22 203830.png

    The problem is that each of these files has all the originals .qml files of the library (QGraphicalEffects for example):

    0_1553298683251_8301a3e0-eb89-408f-babb-4e930e388152-image.png

    Is there any solution or command that I should on the console to get rid of these files?

    The truth is out there

    T 1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      I don't think there is. If you are certain your app does not need them, you can delete them manually after running Qt deployment.

      (Z(:^

      oria66O 1 Reply Last reply
      0
      • sierdzioS sierdzio

        I don't think there is. If you are certain your app does not need them, you can delete them manually after running Qt deployment.

        oria66O Offline
        oria66O Offline
        oria66
        wrote on last edited by
        #3

        @sierdzio Thank you for your answer.

        I do some test in order to probe your advice.

        First, my project uses the ColorOverlay effect, so:

        • I delete the QGraphicalEffects folder. The application did not open. Maybe some crash.
        • I restore the folder, and I delete all the files except these ones. The app run correctly

        0_1553367368880_3d729f06-bad6-48fc-84f4-4f1562bd21e6-image.png

        The same effect with QtQuick/Controls.2 folder. When I erase it, the app did not run.

        So, the conclusions are:

        • You can delete some files (*.qml) but never delete the plugins.qmltypes, qmldir, qtgraphicaleffectsplugin.dll and the effects you use in your app, in my case ColorOverlay.qml
        • You can delete those files (*qml) in QtQuick/Controls.2 folder that don't belong to your theme or style. For example, if you use Fusion, you can delete the others. In addition you can not delete the plugins.qmltypes, qmldir, qtquickcontrols2plugin.dll files either.

        But now the question is: Why the qt system deployment cannot handle this automatically?

        The truth is out there

        sierdzioS 1 Reply Last reply
        1
        • oria66O oria66

          @sierdzio Thank you for your answer.

          I do some test in order to probe your advice.

          First, my project uses the ColorOverlay effect, so:

          • I delete the QGraphicalEffects folder. The application did not open. Maybe some crash.
          • I restore the folder, and I delete all the files except these ones. The app run correctly

          0_1553367368880_3d729f06-bad6-48fc-84f4-4f1562bd21e6-image.png

          The same effect with QtQuick/Controls.2 folder. When I erase it, the app did not run.

          So, the conclusions are:

          • You can delete some files (*.qml) but never delete the plugins.qmltypes, qmldir, qtgraphicaleffectsplugin.dll and the effects you use in your app, in my case ColorOverlay.qml
          • You can delete those files (*qml) in QtQuick/Controls.2 folder that don't belong to your theme or style. For example, if you use Fusion, you can delete the others. In addition you can not delete the plugins.qmltypes, qmldir, qtquickcontrols2plugin.dll files either.

          But now the question is: Why the qt system deployment cannot handle this automatically?

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          @oria66 said in How to get rid of QtQuick and QGraphicalEffects folders on app final release?:

          But now the question is: Why the qt system deployment cannot handle this automatically?

          Because nobody wrote project parser that's clever enough to detect which QML files are necessary and which aren't.

          (Z(:^

          J.HilkJ 1 Reply Last reply
          0
          • sierdzioS sierdzio

            @oria66 said in How to get rid of QtQuick and QGraphicalEffects folders on app final release?:

            But now the question is: Why the qt system deployment cannot handle this automatically?

            Because nobody wrote project parser that's clever enough to detect which QML files are necessary and which aren't.

            J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by
            #5

            @sierdzio which is a shame, because this is one of the reasons why android and iOS apps get so big in size so quickly. The deployment tool copies just as well everything. :-(


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            sierdzioS 1 Reply Last reply
            0
            • J.HilkJ J.Hilk

              @sierdzio which is a shame, because this is one of the reasons why android and iOS apps get so big in size so quickly. The deployment tool copies just as well everything. :-(

              sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              @J.Hilk said in How to get rid of QtQuick and QGraphicalEffects folders on app final release?:

              @sierdzio which is a shame, because this is one of the reasons why android and iOS apps get so big in size so quickly. The deployment tool copies just as well everything. :-(

              It is. Although all these QML dependencies do not weight much. Qt DLLs are significantly heavier.

              (Z(:^

              1 Reply Last reply
              0
              • oria66O oria66

                Hi.

                In my last project, I noted something that bothers me. When I compile the final executable on the console with:

                windeployqt --release --qmldir <MyQMLFiles> PathToExecutable
                

                I got these files:

                0_1553298010884_Anotación 2019-03-22 203830.png

                The problem is that each of these files has all the originals .qml files of the library (QGraphicalEffects for example):

                0_1553298683251_8301a3e0-eb89-408f-babb-4e930e388152-image.png

                Is there any solution or command that I should on the console to get rid of these files?

                T Offline
                T Offline
                Tom_H
                wrote on last edited by
                #7

                @oria66 I had a similar question a few weeks ago. See this thread:

                https://forum.qt.io/post/511417

                The only way I could do it was by opening the gradle project in Android Studio after building it with Qt Creator. Then by trial and error, remove unwanted DLLs. Sadly, it didn't save much space.

                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