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

时光毁灭记忆、已成空白 提交于 2020-01-02 07:09:22

问题


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?


回答1:


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

QMAKE_RESOURCE_FLAGS += -compress 0



回答2:


As per the latest documentation of Resource Compiler rcc:

QMAKE_RESOURCE_FLAGS += -no-compress


来源:https://stackoverflow.com/questions/19353719/qt-how-to-turn-off-resource-compression-in-pro-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!