1 Attachment(s)
QTreeView branch indicator bug?
If the first node in a QTreeView does not have children, but the second has, I get the following effect after I expand the node:
Attachment 7753
Is this a known bug? Could I be doing something wrong? Note, that if I collapse the second node, everything looks normal. The bug persists even if I reset the model.
Re: QTreeView branch indicator bug?
Hey, I amhaving the exact same problem, but found no solution ( http://www.qtcentre.org/threads/4909...lem?highlight= )
It would be cool, if you could post your sample code. I have only an already very complicated view and model, so maybe I find the solution with a more reduced code.
If you find something let us please know!
Re: QTreeView branch indicator bug?
In my case I've implemented QModelIndex parent(const QModelIndex & index) const [pure virtual] wrongly in the QAbstractItemModel. Now that I've fixed it, everything works!