Friday, June 7, 2013

Qt converting qrc file to rcc with out creating pro

Qt ui files understand only resources that are from a binary resource called rcc. When you are creating a resource file, the XML created to locate this resource are created in a file called qrc.
When the project is compiled using the project description file pro, It generates the binary rcc file.

We can create this rcc file without a profile. We can use the rcc utility located in the bin folder where qt is located. The command to do is

rcc - binary myresource.qrc -o myresource.rcc 

Where  myresource.qrc is the XML resource file created by the designer and used by lets say myui.ui file. myresource.rcc is the output binary rcc file which finally used by myui.ui

Contributors