aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/extras
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-10-18 10:50:18 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-10-18 11:40:30 +0200
commiteaefc0da1f9a9cd37d941ec8b1b5d346064cb5e0 (patch)
treea3aecd7b933c74e3684a8999435f1dd93521ce6d /sources/pyside6/doc/extras
parentc7159d203eb90f6c303c2cc84208eea255c62160 (diff)
Documentation: Add a note about @property and QML
Pick-to: 6.8 Change-Id: I03fd38ffbae1a9a38b8d7efc130c0460da45534f Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/doc/extras')
-rw-r--r--sources/pyside6/doc/extras/QtCore.Property.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/pyside6/doc/extras/QtCore.Property.rst b/sources/pyside6/doc/extras/QtCore.Property.rst
index 9ed7de427..671b2dfe2 100644
--- a/sources/pyside6/doc/extras/QtCore.Property.rst
+++ b/sources/pyside6/doc/extras/QtCore.Property.rst
@@ -63,6 +63,10 @@ Despite the fact that the latter has an extra ``freset`` function, the usage
of properties is almost the same. The main difference is that ``QtCore.Property``
requires a ``type`` parameter.
+
+.. note:: ``Python`` property objects do *not* work in QML; ``QtCore.Property``
+ needs to be used.
+
In the above example, the following lines would be equivalent properties:
.. code-block:: python