forked from qt-creator/qt-creator
Doc: Describe creating QRC and RCC files
Fixes: QDS-4566 Change-Id: I1a1e95e64f5196776d2205d66d59120e8d3412d7 Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
This commit is contained in:
@@ -148,7 +148,7 @@
|
||||
/*!
|
||||
\page creator-crashpad.html
|
||||
\previouspage collecting-user-feedback.html
|
||||
\nextpage studio-help.html
|
||||
\nextpage studio-packaging.html
|
||||
|
||||
\title Reporting Crashes
|
||||
|
||||
|
@@ -32,8 +32,8 @@
|
||||
/*!
|
||||
\page creator-vcs-git.html
|
||||
\if defined(qtdesignstudio)
|
||||
\previouspage studio-projects.html
|
||||
\nextpage studio-importing-designs.html
|
||||
\previouspage studio-packaging.html
|
||||
\nextpage quick-converting-ui-projects.html
|
||||
\else
|
||||
\previouspage creator-vcs-cvs.html
|
||||
\nextpage creator-vcs-mercurial.html
|
||||
|
BIN
doc/qtdesignstudio/images/studio-add-resources.png
Normal file
BIN
doc/qtdesignstudio/images/studio-add-resources.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.2 KiB |
72
doc/qtdesignstudio/src/qtdesignstudio-packaging.qdoc
Normal file
72
doc/qtdesignstudio/src/qtdesignstudio-packaging.qdoc
Normal file
@@ -0,0 +1,72 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2021 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the Qt Creator documentation.
|
||||
**
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Free Documentation License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Free
|
||||
** Documentation License version 1.3 as published by the Free Software
|
||||
** Foundation and appearing in the file included in the packaging of
|
||||
** this file. Please review the following information to ensure
|
||||
** the GNU Free Documentation License version 1.3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
/*!
|
||||
\page studio-packaging.html
|
||||
\previouspage creator-crashpad.html
|
||||
\nextpage creator-vcs-git.html
|
||||
|
||||
\title Packaging Applications
|
||||
|
||||
When you are ready to deliver your application to users or upload it to
|
||||
app stores, you can use \QDS to create suitable packages that contain all
|
||||
the necessary files, such as fonts, images, components, and modules.
|
||||
|
||||
\section1 Adding Resources to Packages
|
||||
|
||||
\QDS supports the \e{Qt Resource System} (QRC), which is a
|
||||
platform-independent mechanism for storing files in the application's
|
||||
executable. This is useful if your application always needs a certain
|
||||
set of files (icons, translation files, and so on) and you don't want
|
||||
to run the risk of losing the files.
|
||||
|
||||
To package your application, select \uicontrol Build >
|
||||
\uicontrol {Generate QRC Resource File}. Then select the
|
||||
files to package in the \uicontrol {Add Resources} dialog.
|
||||
|
||||
\image studio-add-resources.png "Add Resources dialog"
|
||||
|
||||
The dialog displays all the files listed in the project file (.qmlproject)
|
||||
and located in the project folder. Files that are listed in the project
|
||||
file are marked with bold text in the UI, to make it easy to identify the
|
||||
differences between the project file and the resource collection file.
|
||||
|
||||
When you select \uicontrol OK, \QDS creates a resource collection file
|
||||
(.qrc) in the project folder.
|
||||
|
||||
If you remove files from the project that you already added to the
|
||||
resource collection file, you can recreate the resource collection
|
||||
file to remove them also from there.
|
||||
|
||||
\section1 Embedding Resources into Applications
|
||||
|
||||
Alternatively, you can embedd the resources into your application by
|
||||
selecting \uicontrol Build > \uicontrol {Generate RCC Resource File}.
|
||||
Select the location for the .qmlrc file, and then select the files to
|
||||
embedd in the \uicontrol {Add Resources} dialog.
|
||||
|
||||
When you select \uicontrol OK, \QDS creates a resource collection file
|
||||
(.qmlrc) in the location you selected.
|
||||
*/
|
@@ -242,6 +242,7 @@
|
||||
\li \l {Collecting User Feedback}
|
||||
\li \l {Reporting Crashes}
|
||||
\endlist
|
||||
\li {Packaging Applications}
|
||||
\endlist
|
||||
\li \l{Developer Topics} (NEW)
|
||||
\list
|
||||
|
@@ -100,6 +100,7 @@
|
||||
\endlist
|
||||
\li \b {\l{Developer Topics}} (NEW)
|
||||
\list
|
||||
\li \l{Packaging Applications}
|
||||
\li \l{Using Git}
|
||||
\li \l{Converting UI Projects to Applications}
|
||||
\li \l{Using External Tools}
|
||||
|
Reference in New Issue
Block a user