I use QTreeView and QItemDelegate to override most of the chores. However, the expand / collapse buttons and sibling / child lines are automatically drawn using some other drawing procedure.
What draws them, and how can I control it?
EDIT:
Qt now draws the QTreeView element in the following order:
[Expand button] - [Check box] - [Other tree items]
I want to do this in the following order:
[Checkbox] - [Expand button] - [Other elements of the tree]
The problem is that my whole picture in QItemDelegate is to the right of the Expand button.
user297250
source share