Hi,
You could also use a QTableWidget. Then you can very easily first define the colums using the editor in Qt Designer. Then in your program you can loop over all your records and add rows to the tablewidget.
Best regards,
Marc
thanks, but i did it in a slightly different way after seeing the example of "custom sort/filter model".
With regards,
For the former use QStandardItemModel::setHorizontalHeaderLabels(). For the latter use QStandardItemModel::appendRow()
Bookmarks