diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-09-18 14:02:54 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-09-18 18:46:05 +0200 |
| commit | 8d89822c5fa521462661c5eb96e7de07b4926c85 (patch) | |
| tree | aa54eced0115b75e7ac62af39416b769563f618c /examples/qml/tutorials/extending-qml/chapter1-basics | |
| parent | 85fcf0e17a7e0d402b80bf1c7ca718744f96c446 (diff) | |
Documentation: Fix errors generating the extending QML tutorial documentation
Amends 5b19e261d5a4d6c28ad25f4bb29a0d5abcd1c947.
Task-number: PYSIDE-2206
Pick-to: 6.10
Change-Id: I80bac199d232f6ef4de7da63ebd98645da6fa3c0
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'examples/qml/tutorials/extending-qml/chapter1-basics')
| -rw-r--r-- | examples/qml/tutorials/extending-qml/chapter1-basics/doc/chapter1-basics.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/qml/tutorials/extending-qml/chapter1-basics/doc/chapter1-basics.rst b/examples/qml/tutorials/extending-qml/chapter1-basics/doc/chapter1-basics.rst index d9bc18cc2..a49744d06 100644 --- a/examples/qml/tutorials/extending-qml/chapter1-basics/doc/chapter1-basics.rst +++ b/examples/qml/tutorials/extending-qml/chapter1-basics/doc/chapter1-basics.rst @@ -72,17 +72,17 @@ drawing operations with the ``QPainter`` API, we can just subclass The ``PieChart`` class defines the two properties, ``name`` and ``color``, with the ``Property`` decorator, and overrides ``QQuickPaintedItem.paint()``. The ``PieChart`` class is registered using the :deco:`~PySide6.QtQml.QmlElement` -decorator, to allow it to be used from QML. If you don't register the class, ``app.qml`` +decorator, to allow it to be used from QML. If you don't register the class, ``App.qml`` won't be able to create a ``PieChart``. QML Usage --------- Now that we have defined the ``PieChart`` type, we will use it from QML. The -``app.qml`` file creates a ``PieChart`` item and displays the pie chart's details +``App.qml`` file creates a ``PieChart`` item and displays the pie chart's details using a standard QML ``Text`` item: -.. literalinclude:: app.qml +.. literalinclude:: Charts/App.qml :lineno-start: 7 :lines: 7-26 @@ -93,7 +93,7 @@ For example, a string like "640x480" can be automatically converted to a ``QSize`` value. We'll also create a main function that uses a :class:`~PySide6.QtQuick.QQuickView` -to run and display ``app.qml``. Here is the application ``basics.py``: +to run and display ``App.qml``. Here is the application ``basics.py``: .. literalinclude:: basics.py :lineno-start: 54 |
