Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Possible to use QAbstractListmodel columncount() function?
eswaramrth03 last edited by
I am new to qt list model. It is possible to set column count in the QAbstractlistmodel? It is possible to assign the set the data based on the different role names?
VRonin last edited by
I am new to qt list model.
The answer then is to use
QAbstractItemModel* model = new QStandardItemModel(parent);this way you can easily use all the pre-baked functionalities of
QStandardItemModelwithout loosing the flexibility of replacing your model in the future with a custom one