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

2

4

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?

Gottlieb answered 14/10, 2013 at 4:55 Comment(0)
P
6

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

QMAKE_RESOURCE_FLAGS += -compress 0
Petitioner answered 14/10, 2013 at 5:48 Comment(0)
S
6

As per the latest documentation of Resource Compiler rcc:

QMAKE_RESOURCE_FLAGS += -no-compress
Scissel answered 6/4, 2015 at 12:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.