Hello.
I am looking for a good way to sort columns (not rows).
I use a QTableView to display a QAbstractTableModel subclass and I want to sort columns.
The class do not seem to have the right methods to do this and I cannot find information on the Internet...
I implement a qSort function and a custom compare to determine the order but I do not find how to change the column order. I tried tableview->horizontalHeader()->moveSection(..., ...) but it is not aware of the mapping in SortModel and only refer to visible rows...
Thanks for the help.
Bookmarks