diff options
author | Geir Vattekar <geir.vattekar@nokia.com> | 2010-09-10 11:53:53 (GMT) |
---|---|---|
committer | Geir Vattekar <geir.vattekar@nokia.com> | 2010-09-10 11:53:53 (GMT) |
commit | 66b8d3d82ef213931501baeeabe27c3acc04e947 (patch) | |
tree | 83454407892015b8788711acb64ecce744b2cb28 /doc | |
parent | 03c56248554b731356d283e467e1d31c54e78653 (diff) | |
download | Qt-66b8d3d82ef213931501baeeabe27c3acc04e947.zip Qt-66b8d3d82ef213931501baeeabe27c3acc04e947.tar.gz Qt-66b8d3d82ef213931501baeeabe27c3acc04e947.tar.bz2 |
Doc: Added info on compression to rcc docs
Task-number: QTBUG-9946
Reviewed-by: David Boddie
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/files-and-resources/resources.qdoc | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/doc/src/files-and-resources/resources.qdoc b/doc/src/files-and-resources/resources.qdoc index 3177af8..f0cb130 100644 --- a/doc/src/files-and-resources/resources.qdoc +++ b/doc/src/files-and-resources/resources.qdoc @@ -54,7 +54,7 @@ The resource system is based on tight cooperation between \l qmake, \l rcc (Qt's resource compiler), and QFile. It obsoletes Qt 3's \c qembed tool and the - \l{http://doc.qt.nokia.com/qq/qq05-iconography.html}{image + \l{http://qt.nokia.com/doc/qq/qq05-iconography.html#imagestorage}{image collection} mechanism. \section1 Resource Collection Files (\c{.qrc}) @@ -156,6 +156,26 @@ native support for resources. This might change in a future Qt release. + \section1 Compression + + Resources are compressed by default (in the \c ZIP format). It is + possible to turn off compression. This can be useful if your + resources already contain a compressed format, such as \c .png + files. You do this by giving the \c {-no-compress} command line + argument. + + \code + rcc -no-compress myresources.qrc + \endcode + + \c rcc also gives you some control over the compression. You can + specify the compression level and the threshold level to consider + while compressing files, for example: + + \code + rcc -compress 2 -threshold 3 myresources.qrc + \endcode + \section1 Using Resources in the Application In the application, resource paths can be used in most places |