Hi all,
I have a QTableView with many columns. Few of them allow a sort, not the other ones. In order to help the user to identify which columns can be sorted, I would like to add a sort indicator, for example like a double arrow, both ascending and descending QT sort indicator arrow) . But I can't find a way to do this, and also I think only one column can have a sort indicator at the same time, right ? Do you have an idea to address the problem ?
Thank you for your help!


Reply With Quote

ecorationRole in my model's headerData() method to set an icon for those columns that can be sorted. The challenge now is to position it wherever I want, and eventually discard the QT icon indicator and use one icon more consistent with the one I used to indicate which columns could be sorted.

Bookmarks