Start and Last Visible Index in QtreeView
Unsolved
General and Desktop
-
Hi All
I have QTreeView for exampleA
|_ B
|_ C
child1
child2
child3
child4
child5
child6
---
child7 ---------------Not VisibleWhen I expand any node for example, I want to know the start and last index of child indices . The what is rownnumber for child1 to child6
-
Hi,
You can use QModelIndex::sibling to check all the childs of your index. Then you can use QAbstractItemView::visualRect to know whether it is visible.