Hi all,
I have a list of QTreeWidgetItems (with children) in a QTreeWidget. I do not use a model for my data.
From another window in my application the user can navigate thru the same set of data (viewed differently) and the QTreeWidget in the first window then highlights that specific row by setting the background colour.
However, when the QTreeWidget is sorted on a column where some of the items have the same value it is undefined which item is first. When I then navigate using the other window and the background colour of the item is set, the equal items swaps place in the view automatically. This looks very strange.
I suspect this is due to the sorting algorithm of QTreeWidget, but does anyone know a possible workaround to this?