summaryrefslogtreecommitdiffstats
path: root/src/corelib/doc/src
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-05-12 09:25:03 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-05-18 23:25:41 +0200
commit20a414d139f58a89b910e155e478a9b1112a9ddf (patch)
treeb8c9b35e15814cb692bffe3b36b60430ce54b6fe /src/corelib/doc/src
parent3ce829a1d4f53410ec7b2863926b97a432a59fa7 (diff)
Document Qt for Python usage of the resource system
Change-Id: I77576d0e6464099a7595a74f4bf8ef18ec515ec2 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit b35551a75e37d4ae1ddb024a82c67cdba714879a) Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/doc/src')
-rw-r--r--src/corelib/doc/src/resource-system.qdoc15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/corelib/doc/src/resource-system.qdoc b/src/corelib/doc/src/resource-system.qdoc
index 6ff10804f5..2ce38addc0 100644
--- a/src/corelib/doc/src/resource-system.qdoc
+++ b/src/corelib/doc/src/resource-system.qdoc
@@ -144,6 +144,21 @@
native support for resources. This might change in a future Qt
release.
+ \section2 Resources in a Qt for Python application
+
+ The resource collection file is converted to a Python module by using
+ the resource compiler \l rcc:
+
+ \code
+ rcc -g python application.qrc > application_rc.py
+ \endcode
+
+ The module needs to be imported in the application:
+
+ \code
+ import application_rc.py
+ \endcode
+
\section1 Compression
\c rcc attempts to compress the content to optimize disk space usage in the