Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt: How to turn off resource compression in pro-file?

Tags:

resources

qt

rcc

I have read "The Qt Resource System" article. In paragraph "Compression" there is information on how to turn off compression by parameters in rcc command line. But rcc command line is auto-generated by qmake from pro file. If I change rcc command line directly it will be restored to original state during next qmake run.

Is it possible to turn off compression in pro?

like image 717
Andrey Epifantsev Avatar asked Dec 16 '22 05:12

Andrey Epifantsev


2 Answers

The QMake variable QMAKE_RESOURCE_FLAGS allows you to pass custom flags to RCC. To disable compression, try:

QMAKE_RESOURCE_FLAGS += -compress 0
like image 180
Frank Osterfeld Avatar answered Jan 10 '23 09:01

Frank Osterfeld


As per the latest documentation of Resource Compiler rcc:

QMAKE_RESOURCE_FLAGS += -no-compress
like image 25
Vladimir Avatar answered Jan 10 '23 10:01

Vladimir