PDA

View Full Version : About QSqlQueryModel



vinny gracindo
11th December 2009, 22:00
How do I order a QSqlQueryModel projected on a QTableView when I click on the tabs of the table?

For example, suppose there is a table that has a student name and age.

I do, using a QSqlQueryModel that all students are shown on the screen (QTableView), however when you click the tab name that is sorted by name, when I click on the tab that age is sorted by age.

More or less like this picture:
http://img685.imageshack.us/img685/7453/24874410.jpg

Thanks

wysota
11th December 2009, 23:27
QSortFilterProxyModel