<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- rcc.qdoc --> <title>Resource Compiler (rcc) | QtDoc 5.1</title> <link rel="stylesheet" type="text/css" href="style/offline.css" /> </head> <body> <div class="header" id="qtdocheader"></div> <div class="content"> <div class="line"> <div class="content mainContent"> <h1 class="title">Resource Compiler (rcc)</h1> <span class="subtitle"></span> <!-- $$$rcc.html-description --> <div class="descr"> <a name="details"></a> <a name="rcc"></a><p>The <tt>rcc</tt> 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.</p> <p>Usage:</p> <pre class="cpp">rcc <span class="operator">[</span>options<span class="operator">]</span> <span class="operator"><</span>inputs<span class="operator">></span></pre> <p>RCC accepts the following command line options:</p> <table class="generic"> <thead><tr class="qt-style"><th >Option</th><th >Argument</th><th >Description</th></tr></thead> <tr valign="top" class="odd"><td ><tt>-o</tt></td><td ><tt>file</tt></td><td >Write output to <tt>file</tt> rather than to stdout.</td></tr> <tr valign="top" class="even"><td ><tt>-name</tt></td><td ><tt>name</tt></td><td >Create an external initialization function with <tt>name</tt>.</td></tr> <tr valign="top" class="odd"><td ><tt>-threshold</tt></td><td ><tt>level</tt></td><td >Specifies a threshold <tt>level</tt> (as a percentage) to use when deciding whether to compress a file. If the reduction in the file size is greater than the threshold <tt>level</tt>, it is compressed; otherwise, the uncompressed data is stored instead. The default threshold level is 70%, meaning that compressed files which are 30% or less of their original size are stored as compressed data.</td></tr> <tr valign="top" class="even"><td ><tt>-compress</tt></td><td ><tt>level</tt></td><td >Compress input files to the given compression <tt>level</tt>, which is an integer in the range 1 to 9. Level 1 does the least compression but is fastest. Level 9 does the most compression but is slowest. To turn off compression, use <tt>-no-compress</tt>. The default value for <tt>level</tt> is -1, which means use zlib's default compression level.</td></tr> <tr valign="top" class="odd"><td ><tt>-root</tt></td><td ><tt>path</tt></td><td >Prefix the resource access path with <tt>path</tt>. The default is no prefix.</td></tr> <tr valign="top" class="even"><td ><tt>-no-compress</tt></td><td ></td><td >Disable compression.</td></tr> <tr valign="top" class="odd"><td ><tt>-binary</tt></td><td ></td><td >Output a binary file for use as a dynamic resource.</td></tr> <tr valign="top" class="even"><td ><tt>-version</tt></td><td ></td><td >Display version information.</td></tr> <tr valign="top" class="odd"><td ><tt>-help</tt></td><td ></td><td >Display usage information.</td></tr> </table> <p>See also The Qt Resource System for more information about embedding resources in Qt applications.</p> </div> <!-- @@@rcc.html --> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2013 Digia Plc and/or its subsidiaries. Documentation contributions included herein are the copyrights of their respective owners.</p> <br /> <p> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.</p> <p> Documentation sources may be obtained from <a href="http://www.qt-project.org"> www.qt-project.org</a>.</p> <br /> <p> Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. <a title="Privacy Policy" href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p> </div> </body> </html>