aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/gettingstarted.rst
diff options
context:
space:
mode:
authorCristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2024-11-08 18:38:00 +0100
committerCristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2024-11-11 16:38:50 +0100
commit435e739df302114517f1685a5146e4741454ad9d (patch)
tree2d180b97a719b129cf266813a7074c3c4bd3a8a7 /sources/pyside6/doc/gettingstarted.rst
parentd500c4fcebdad5516da1ae7865d76437c752ac92 (diff)
doc: Avoid same name for directory and main qml file
Discovered while testing deployment on macOS, nuitka fails when the directory and file (e.g. Main/Main.qml) have the same name. This might be able to be fixed by other arguments or even upstream in Nuitka, this is a simple change that will encourage people not to use the same name in the meantime Pick-to: 6.8 Fixes: PYSIDE-2919 Task-number: PYSIDE-2910 Change-Id: I596d820e4a30996f9cf934a9f93e6436e51ad0d2 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/doc/gettingstarted.rst')
-rw-r--r--sources/pyside6/doc/gettingstarted.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/pyside6/doc/gettingstarted.rst b/sources/pyside6/doc/gettingstarted.rst
index e514530bb..60af44668 100644
--- a/sources/pyside6/doc/gettingstarted.rst
+++ b/sources/pyside6/doc/gettingstarted.rst
@@ -236,12 +236,12 @@ To do the same using Qt Quick:
}
Put the this into a file named :code:`Main.qml` into a directory named
- :code:`Main` along with a file named :code:`qmldir` to describe a basic
+ :code:`Example` along with a file named :code:`qmldir` to describe a basic
QML module:
.. code-block:: text
- module Main
+ module Example
Main 254.0 Main.qml
* **Application execution**
@@ -257,7 +257,7 @@ To do the same using Qt Quick:
app = QGuiApplication(sys.argv)
engine = QQmlApplicationEngine()
engine.addImportPath(sys.path[0])
- engine.loadFromModule("Main", "Main")
+ engine.loadFromModule("Example", "Main")
if not engine.rootObjects():
sys.exit(-1)
exit_code = app.exec()