A custom C++ model.
The delegate part is on the QML side, it doesn't care what kind of model you have. Even a plain number can be treated as a model.
No
While you can use QAbstractTableModel, e.g. if you also want to show the data in a widget based QTableView, QtQuick will only treat it as a list model.
A table model can still work if the model can map the QML roles onto columns, or you just derive from QAbstractListModel.
Yes, QAbstractListModel
Cheers,
_






Reply With Quote
Bookmarks