Hello,

I’m using a QTreeView where the branches can be updated seperately. Anytime, a branche updates, it should not be possible to expand the branch, so I want to replace the + or arrow icon with something else. My first approach was to use a user-defined property on the ItemDelegate, however this only works with the item’s icon and not with the branch’s.

So, I’d like to know if it is possible to make the style used for a branch icon dependent on an additional property. I know, that it is possible with style sheets to use properties like active and children and so on, but can I define some other property for the branch without cloning all but one line of QTreeView::drawBranches? (Unfortunately the extraFlags variable used inside drawBranches is not directly assignable from the outside, and on the other hand, drawPrimitive does not take any information about the QModelIndex but maybe there is some trick to get this working.)

/rike