diff options
Diffstat (limited to 'examples/qml/tutorials/extending-qml/chapter2-methods')
| -rw-r--r-- | examples/qml/tutorials/extending-qml/chapter2-methods/doc/chapter2-methods.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qml/tutorials/extending-qml/chapter2-methods/doc/chapter2-methods.rst b/examples/qml/tutorials/extending-qml/chapter2-methods/doc/chapter2-methods.rst index 6ba62cd8a..c192fb9b6 100644 --- a/examples/qml/tutorials/extending-qml/chapter2-methods/doc/chapter2-methods.rst +++ b/examples/qml/tutorials/extending-qml/chapter2-methods/doc/chapter2-methods.rst @@ -19,7 +19,7 @@ to our C++ class: :lineno-start: 54 :lines: 54-58 -The use of the ``Slot`` decorator makes the ``clearChart()`` method available +The use of :deco:`~PySide6.QtCore.Slot` makes the ``clearChart()`` method available to the Qt Meta-Object system, and in turn, to QML. The method simply changes the color to ``Qt::transparent``, repaints the chart, then emits the ``chartCleared()`` signal: |
