QAbstractListModel in QML
=========================

.. tags:: Android

This example shows how to add, remove and move items inside a
`QML ListView`_, but showing and editing the data via roles using a
:class:`~PySide6.QtCore.QAbstractListModel` from Python.

You can add new elements and reset the view using the two top buttons,
remove elements by 'middle click' the element, and move the elements
with a 'left click' plus dragging the item around.

.. image:: qabstractlistmodelqml.png
   :width: 800
   :alt: QAbstractListModel/ListView Screenshot

.. _`QML ListView`: https://doc.qt.io/qt-6/qml-qtquick-listview.html
