Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. a simple hello world gui app 13mb is there a way to reduce the size ?
Forum Updated to NodeBB v4.3 + New Features

a simple hello world gui app 13mb is there a way to reduce the size ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 6 Posters 323 Views 1 Watching
  • 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.
  • U Offline
    U Offline
    unknown968787
    wrote last edited by
    #1

    Annotation 2025-12-13 220040.png

    a simple gui hello world is 13mb

    is there a way to reduce this size it is too large ?

    qt creatore version : 4.11.0

    qt version : 5.12.12

    msvc 2019

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote last edited by
      #2

      Hi,

      Are you using a static build of Qt ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      U 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Are you using a static build of Qt ?

        U Offline
        U Offline
        unknown968787
        wrote last edited by
        #3

        @SGaist yes it is static

        1 Reply Last reply
        0
        • Christian EhrlicherC Online
          Christian EhrlicherC Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote last edited by
          #4

          Compile in release mode, don't use static builds.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          U 1 Reply Last reply
          1
          • Christian EhrlicherC Christian Ehrlicher

            Compile in release mode, don't use static builds.

            U Offline
            U Offline
            unknown968787
            wrote last edited by
            #5

            @Christian-Ehrlicher i want static no dlls

            1 Reply Last reply
            0
            • Christian EhrlicherC Online
              Christian EhrlicherC Online
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote last edited by
              #6

              Then you must live with it. Your app needs a lot of functionality even you don't see them in your simple test app and when you compile in debug mode even debug symbols.

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              1 Reply Last reply
              0
              • TomAT Offline
                TomAT Offline
                TomA
                wrote last edited by
                #7

                Yes it is crazy how bloated a Qt executable is. You can no longer fit any kind of simple Qt application on a floppy disk. I have learned to live with it, as I do like that I can build the same code for both win32 and Linux. If you only need a windows build, the Borland/Embarcadero VCL (C++ Builder) is a rapid application development framework that makes same GUI features to executables that are less than 200 kB, which you can fit several on a floppy disc.

                And yes, I also only do static builds, as that is the only way you can guarantee that the program works without conflicts and missing dependencies for a long time.

                Christian EhrlicherC Z 2 Replies Last reply
                0
                • TomAT TomA

                  Yes it is crazy how bloated a Qt executable is. You can no longer fit any kind of simple Qt application on a floppy disk. I have learned to live with it, as I do like that I can build the same code for both win32 and Linux. If you only need a windows build, the Borland/Embarcadero VCL (C++ Builder) is a rapid application development framework that makes same GUI features to executables that are less than 200 kB, which you can fit several on a floppy disc.

                  And yes, I also only do static builds, as that is the only way you can guarantee that the program works without conflicts and missing dependencies for a long time.

                  Christian EhrlicherC Online
                  Christian EhrlicherC Online
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote last edited by
                  #8

                  @TomA said in a simple hello world gui app 13mb is there a way to reduce the size ?:

                  that makes same GUI features to executables that are less than 200 kB

                  And then you are missing the runtime dlls - you won't get down to a flopy disc for a static build with any recent gui toolkit nowadays. A Qt executable without the runtime dlls like the one above is about 100kb...

                  Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                  Visit the Qt Academy at https://academy.qt.io/catalog

                  1 Reply Last reply
                  0
                  • TomAT TomA

                    Yes it is crazy how bloated a Qt executable is. You can no longer fit any kind of simple Qt application on a floppy disk. I have learned to live with it, as I do like that I can build the same code for both win32 and Linux. If you only need a windows build, the Borland/Embarcadero VCL (C++ Builder) is a rapid application development framework that makes same GUI features to executables that are less than 200 kB, which you can fit several on a floppy disc.

                    And yes, I also only do static builds, as that is the only way you can guarantee that the program works without conflicts and missing dependencies for a long time.

                    Z Offline
                    Z Offline
                    ZNohre
                    wrote last edited by ZNohre
                    #9

                    @TomA Floppy disks!?

                    1 Reply Last reply
                    3
                    • J Offline
                      J Offline
                      JolianD
                      Banned
                      wrote last edited by
                      #10

                      A tiny Qt GUI app showing 13 MB is normal, Qt brings along a lot of runtime stuff. If you want to shrink it, you need to use a release build and only include the modules you actually use. Static builds can make it even smaller. You won’t get it tiny like a console app, but you can shave off a good bit of that size.

                      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