did you try to use QSqlTableModel/QSqlQueryModel?
did you try to use QSqlTableModel/QSqlQueryModel?
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
You would be better off using one of the prebuilt SQL models, but I think your problem is that you have created your QStandardItemModel to contain no rows!
Try changing the zero to something else or using the appendRow() method.
Bookmarks