Unsolved Possible to use QAbstractListmodel columncount() function?
-
Hi,
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?
-
@eswaramrth03 said in Possible to use QAbstractListmodel columncount() function?:
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 ofQStandardItemModel
without loosing the flexibility of replacing your model in the future with a custom one