diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-09-15 13:21:53 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-09-16 10:30:36 +0200 |
commit | cf32b66adbfb489cd6e5d5c0bf3f741b59ba204c (patch) | |
tree | 44be69c9487f5d4db1092d061a555bd6001c1ab4 /examples/declarative/window/doc/window.rst | |
parent | b20d6f6906f91f9df608d7800f4e27f7a7160abe (diff) |
Move examples around
Change the directory structure to closer match that of Qt.
Task-number: PYSIDE-841
Change-Id: I87aca346b6654aafe94dd1fb83c184c182ceb2e6
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'examples/declarative/window/doc/window.rst')
-rw-r--r-- | examples/declarative/window/doc/window.rst | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/examples/declarative/window/doc/window.rst b/examples/declarative/window/doc/window.rst deleted file mode 100644 index 8736bb629..000000000 --- a/examples/declarative/window/doc/window.rst +++ /dev/null @@ -1,35 +0,0 @@ -Qt Quick Examples - Window and Screen -===================================== - -This example demonstrates the Window and Screen types in QML. - -.. image:: window.png - :width: 392 - :alt: Window and Screen screenshot - -In addition, this example demonstrates the usage of the Qt Resource System in -Qt for Python for more advanced scenarios. There are several QML files, one of -which imports a module from this sibling directory. Both this "shared" module -and the QML files of the example need to be compiled into Python modules with -the resource compiler rcc. - -For the "shared" module approach to work with QML and rcc, you need: - -* A module definition *qmldir* file -* A Qt Resource Collection file (.qrc) specifying all the QML files and other -resources, plus the *qmldir* file - -The .qrc file is the input to rcc. This will generate a Python module (called -*shared_rc* here) that can then be imported from the Python code. At runtime, -only this Python module is needed, not the .qrc file or any of the .qml files -or even the image resources, as they have all been compiled into the Python -module. - -For the example, rcc needs: - -* A Qt Resource Collection file (.qrc) specifying all the QML files and other -resources. There is no qmldir file here because this is not a module. - -This will generate a Python module (called *window_rc* here) that can then be -imported from the Python code. Again, only the Python module is needed at -runtime. |