Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Custom model of nested lists to QML
EStudley last edited by EStudley
What's the best approach to creating a role that exposes a list in QML?
There is a list of players and their bug reports. This is how the data is structured:
- ReportsRole: [
Originally I thought of a QAbstractListItem that returns a QAbstractListItem as a QObject-cast-to-QVariant role? It does not seem to fit the TreeItem/TreeModel example as the roles are different between parent/child.
EStudley last edited by
Still not sure what's the best design here.