From 435e739df302114517f1685a5146e4741454ad9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=C3=A1n=20Maureira-Fredes?= Date: Fri, 8 Nov 2024 18:38:00 +0100 Subject: 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 Reviewed-by: Christian Tismer Reviewed-by: Friedemann Kleint --- sources/pyside6/doc/tutorials/basictutorial/qml.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sources/pyside6/doc/tutorials/basictutorial') diff --git a/sources/pyside6/doc/tutorials/basictutorial/qml.rst b/sources/pyside6/doc/tutorials/basictutorial/qml.rst index fe1519b84..206383e16 100644 --- a/sources/pyside6/doc/tutorials/basictutorial/qml.rst +++ b/sources/pyside6/doc/tutorials/basictutorial/qml.rst @@ -42,12 +42,12 @@ that reads "Hello World". The code :code:`anchors.centerIn: main` makes the text appear centered within the object with :code:`id: main`, which is the Rectangle in this case. -Put the file into into a directory named :code:`Main` along +Put the file into into a directory named :code:`App` along with a file named :code:`qmldir` to describe a basic QML module: .. code-block:: text - module Main + module App Main 254.0 Main.qml Now, let's see how the code looks on the PySide6. @@ -63,7 +63,7 @@ Let's call it :code:`main.py`: app = QGuiApplication() view = QQuickView() view.engine().addImportPath(sys.path[0]) - view.loadFromModule("Main", "Main") + view.loadFromModule("App", "Main") view.show() ex = app.exec() del view -- cgit v1.2.3