diff options
Diffstat (limited to 'examples/qml/referenceexamples/valuesource/doc/valuesource.rst')
-rw-r--r-- | examples/qml/referenceexamples/valuesource/doc/valuesource.rst | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/qml/referenceexamples/valuesource/doc/valuesource.rst b/examples/qml/referenceexamples/valuesource/doc/valuesource.rst new file mode 100644 index 000000000..81fbc827f --- /dev/null +++ b/examples/qml/referenceexamples/valuesource/doc/valuesource.rst @@ -0,0 +1,20 @@ +.. _qml-valuesource-example: + +Extending QML - Value Source Example +==================================== + +This example builds on the :ref:`qml-adding-types-example`, +the :ref:`qml-attached-properties-example`, +the :ref:`qml-default-property-example`, +the :ref:`qml-inheritance-and-coercion-example` and +the :ref:`qml-object-and-list-property-types-example`. + +It demonstrates implementing a +`property value source <https://doc.qt.io/qt-6/qtqml-cppintegration-definetypes.html#property-value-sources>`_ +in Python. + +Running the Example +------------------- + +The main.py file in the example includes a simple shell application that +loads and runs the QML snippet shown below. |