From b35551a75e37d4ae1ddb024a82c67cdba714879a Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 12 May 2020 09:25:03 +0200 Subject: Document Qt for Python usage of the resource system Pick-to: 5.15 Change-Id: I77576d0e6464099a7595a74f4bf8ef18ec515ec2 Reviewed-by: hjk Reviewed-by: Venugopal Shivashankar Reviewed-by: Cristian Maureira-Fredes --- src/corelib/doc/src/resource-system.qdoc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/corelib/doc/src') 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 -- cgit v1.2.3