The data structure of your model depends on your data and your needs.

You probably have rows of records, so your data structure could be a QList or QVector of record objects.

The model could then be a simple QAbstractListModel derived class, where the row indexes into the list and the role indexes into the record.

Cheers,
_