tags:

views:

82

answers:

1

How to decompress compiled qt resource file with rcc extension?

A: 

rcc is not a file format. It's Qt's resource compiler. It doesn't create a resource file either. It converts the resources specified in your qrc file into a C++ source file and lets C++ compiler compile it into object code to be linked into your app.

Look for qrc_yourproject.cpp in your build directory to see what's produced. Do not try to access the objects/structures defined in the file directly since Qt may change how they are constructed in later versions. Use Qt's resource management calls to do that.

Stephen Chu
It is also possible to create a binary file from the .qrc file, external to your app, with rcc, that can be loaded at runtime. See [External binary resources](http://doc.qt.nokia.com/4.6/resources.html)
Leiaz
You are right. I didn't know that. Thanks.
Stephen Chu