How to minimize the size of Qt applications?

The size of the application with all the necessary DLL files is very large (almost 30 mb). How can I reduce this size?

+4
source share
2 answers

In theory, you can do any of the following:

  • Disable Qt features that you are not using. See the official documentation on this .
  • Use an older version of Qt, which has fewer dependencies, such as ICUs and fewer libraries.
  • Build everything with optimized connection time, including the Qt DLL. Your mileage may vary (you can even increase it, but faster in the process).
  • , . , . : DLL, MB . ( , MSVC) ( # 2).
  • : . , . 7z, .
  • UPX. 4.

4.

+4

( , QML, ++ ..), , configure , :

-feature -no-feature , , qtbase/src/corelib/global/qfeatures.txt. , , -no-feature-accessibility :

./configure -no-feature-accessibility

: , , .

+1

Source: https://habr.com/ru/post/1546698/


All Articles