Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[Solved] QTreeView and spurious lines
vsajip last edited by
I'm having a problem where QTreeView is showing spurious lines. See the following screenshot:
!http://i.imgur.com/FZhUo.png(Screenshot showing problem of spurious lines)!
The program I used to generate this is a PySide script, detailed in "this gist":https://gist.github.com/812648 (I can't include it inline, as it makes this post too big for the forum to accept).
From what I can see, I'm returning the correct rowCount(), parent() etc. from the model. It's not apparently a PySide problem (the same thing happens when I use PyQt4). If you run the script and hover over each node, it tells you the parent and the child count, all of which seem to be OK.
Solved: parent() was returning the wrong row in some cases, causing the problem :-(
andre last edited by
Thanks for posting your solution!