Hi!
I have a QTreeWidget with only toplevelItems. Is there a way to get the first visible
item and the last visible item on the viewport?
Hi!
I have a QTreeWidget with only toplevelItems. Is there a way to get the first visible
item and the last visible item on the viewport?
Hi
Yes, QTreeWidget has a method that gives the "top level item" at certain index. There is also a method to get the total count of top level items.
J-P Nurmi
But how to know which indexes are currently visible on the viewport?
Oh, for that you could use geometrical functions of the viewport and then QTreeWidget::itemAt(QPoint). May I ask what do you intend to do, anyway?
J-P Nurmi
Bookmarks