.. _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.
