Pluvius
10th January 2012, 11:06
Hello guys!
Whenever I retrieve a row from a QSqlTableModel the output on the view is naturally like this:
7249
I would like to "customize" the way data is displayed like in the following image:
7250
At first I had a wild idea of subclassing a QTableView but my guess is to manipulate the QModelIndexes and map them to new ones in the QSortFilterProxyModel but I'm not sure if this is the way to go, could you please help me on this one?
Thanks!
Whenever I retrieve a row from a QSqlTableModel the output on the view is naturally like this:
7249
I would like to "customize" the way data is displayed like in the following image:
7250
At first I had a wild idea of subclassing a QTableView but my guess is to manipulate the QModelIndexes and map them to new ones in the QSortFilterProxyModel but I'm not sure if this is the way to go, could you please help me on this one?
Thanks!