How to sort column in qTableView
Unsolved
General and Desktop
-
Hi, I have QSqlQueryModel which I want to order by id (column 0) by Qt, because if I add ORDER BY in my Select Statement it cause bad performance.
-
Then you should add a QSortFilterProxyModel even though I would say that this is slower than a 'ORDER BY' clause with a proper index on the column to sort.