Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/doc/src/files-and-resources/resources.qdoc

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    77** This file is part of the documentation of the Qt Toolkit.
    88**
    9 ** $QT_BEGIN_LICENSE:LGPL$
     9** $QT_BEGIN_LICENSE:FDL$
    1010** Commercial Usage
    1111** Licensees holding valid Qt Commercial licenses may use this file in
    1212** accordance with the Qt Commercial License Agreement provided with the
    13 ** Software or, alternatively, in accordance with the terms contained in
    14 ** a written agreement between you and Nokia.
    15 **
    16 ** GNU Lesser General Public License Usage
    17 ** Alternatively, this file may be used under the terms of the GNU Lesser
    18 ** General Public License version 2.1 as published by the Free Software
    19 ** Foundation and appearing in the file LICENSE.LGPL included in the
    20 ** packaging of this file.  Please review the following information to
    21 ** ensure the GNU Lesser General Public License version 2.1 requirements
    22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    23 **
    24 ** In addition, as a special exception, Nokia gives you certain additional
    25 ** rights.  These rights are described in the Nokia Qt LGPL Exception
    26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    27 **
    28 ** GNU General Public License Usage
    29 ** Alternatively, this file may be used under the terms of the GNU
    30 ** General Public License version 3.0 as published by the Free Software
    31 ** Foundation and appearing in the file LICENSE.GPL included in the
    32 ** packaging of this file.  Please review the following information to
    33 ** ensure the GNU General Public License version 3.0 requirements will be
    34 ** met: http://www.gnu.org/copyleft/gpl.html.
     13** Software or, alternatively, in accordance with the terms contained in a
     14** written agreement between you and Nokia.
     15**
     16** GNU Free Documentation License
     17** Alternatively, this file may be used under the terms of the GNU Free
     18** Documentation License version 1.3 as published by the Free Software
     19** Foundation and appearing in the file included in the packaging of this
     20** file.
    3521**
    3622** If you have questions regarding the use of this file, please contact
     
    5541    \page resources.html
    5642    \title The Qt Resource System
     43    \ingroup qt-network
     44    \brief A platform-independent mechanism for storing binary files in an application.
    5745
    5846    \keyword resource system
     
    9381
    9482    By default, resources are accessible in the application under the
    95     same name as they have in the source tree, with a \c :/ prefix.
    96     For example, the path \c :/images/cut.png would give access to the
     83    same file name as they have in the source tree, with a \c :/ prefix,
     84    or by a \link QUrl URL\endlink with a \c qrc scheme.
     85
     86    For example, the file path \c :/images/cut.png or the URL
     87    \c qrc:///images/cut.png would give access to the
    9788    \c cut.png file, whose location in the application's source tree
    9889    is \c images/cut.png. This can be changed using the \c file tag's
     
    166157    release.
    167158
     159    \section1 Compression
     160
     161    Resources are compressed by default (in the \c ZIP format). It is
     162    possible to turn off compression. This can be useful if your
     163    resources already contain a compressed format, such as \c .png
     164    files. You do this by giving the \c {-no-compress} command line
     165    argument.
     166
     167    \code
     168        rcc -no-compress myresources.qrc
     169    \endcode
     170
     171    \c rcc also gives you some control over the compression. You can
     172    specify the compression level and the threshold level to consider
     173    while compressing files, for example:
     174
     175    \code
     176        rcc -compress 2 -threshold 3 myresources.qrc
     177    \endcode
     178
    168179    \section1 Using Resources in the Application
    169180
Note: See TracChangeset for help on using the changeset viewer.