I am using a QTreeView and a QItemDelegate to reimplement most of the paint routine. However, the expand/collapse buttons and the sibling/child lines are drawn automatically by some other paint routine.
What is drawing them, and how can I control it?
EDIT:
Right now, Qt draws a QTreeView item in this order:
[Expand button] -- [Checkbox] -- [Rest of treeitem stuff]
I want to draw it in this order:
[Checkbox] -- [Expand button] -- [Rest of treeitem stuff]
The problem is that all my painting in the QItemDelegate is to the right of the Expand Button.