aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/referenceexamples/valuesource/doc/valuesource.rst
blob: 81fbc827f5110a23f4caf3ad2d14e25bd0b041e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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.