I have a QTreeWidget in which I insert elements, and the user can select a column to sort it. When elements are inserted, they are simply added to the end, and not automatically sorted. If I click the title to switch between up / down, it sorts the current items.
I decided that I could call sortItems () and use the column that is returned from sortColumn (), but I cannot see how I can see if the user is sorting in ascending or descending order.
I am not worried about the effectiveness of this, so I do not want to wait until the inserts are completed, and then sort. I would like a sorted list in real time.
Thanks!
source
share