Home · All Namespaces · All Classes · Main Classes · Grouped Classes · Modules · Functions

Resource Compiler (rcc)

The rcc tool is used to embed resources into a Qt application during the build process. It works by generating a C++ source file containing data specified in a Qt resource (.qrc) file.

Usage:

 rcc [options] <inputs>

RCC accepts the following command line options:

OptionArgumentDescription
-oWrites output to file rather than stdout.
-namenameCreates an external initialization function with name.
-thresholdlevelSpecifies a threshold (in bytes) to use when compressing files. If the file is smaller than the threshold, it will not be compressed, independent of what the compression level is.
-compresslevelCompresses input files with the given level. Level is an integer from 1 to 9 - 1 being the fastest, producing the least compression; 9 being the slowest, producing the most compression.
-rootpathPrefixes the resource access path with root path.
-no-compressDisables all compression.
-binaryOutputs a binary file for use as a dynamic resource.
-versionDisplays version information.
-helpDisplays usage information.

See also The Qt Resource System for more information about embedding resources in Qt applications.


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.5.1