PDA

View Full Version : Formatting tablemodel data exhibition on a tableview.



tiredtyrant
3rd February 2013, 19:21
Hello,

I'm displaying a table from a database using QSqlTableModel and QTableView. The problem is that the format I'm using to store data in the database isn't what I want to be displayed to the user. Is there a way to format the data while still using a QSqlTableModel? I'm using Qt 5.

Thanks.

Santosh Reddy
3rd February 2013, 19:30
Yes, use QAbstractProxyModel