Skip to content
Advertisement

Tag: qml

Using ListModel (Python/Pyside6) in QML

I have a ListView in QML and want to populate it with data from a AbstractListModel that I created in Python. AbtractListModel.py (I removed methods like rowCount() to keep the example lucid) Student.py ListView.qml How can I access name and age of a student in the delegate to show them where I used “#name” and “#age”? Answer At a minimum

Advertisement