Andrey Epifantsev
Andrey Epifantsev

Reputation: 1104

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

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?

Upvotes: 4

Views: 1769

Answers (2)

Vladimir
Vladimir

Reputation: 111

As per the latest documentation of Resource Compiler rcc:

QMAKE_RESOURCE_FLAGS += -no-compress

Upvotes: 6

Frank Osterfeld
Frank Osterfeld

Reputation: 25155

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

QMAKE_RESOURCE_FLAGS += -compress 0

Upvotes: 6

Related Questions