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
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-05-13 11:04:59 +0200
commitb35551a75e37d4ae1ddb024a82c67cdba714879a (patch)
tree8e2af9ea0dda9f834a231083bf5de3a08ea0d72b /src/corelib/doc/src
parente8057600b6e658aafe84bea4912f5fae1dad86ad (diff)
Document Qt for Python usage of the resource system
Pick-to: 5.15 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>
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