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>bb10
parent
e8057600b6
commit
b35551a75e
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue