maurobio
maurobio

Reputation: 1577

PyQt: How to get the item at a specific position in a TreeWidget?

How do I get the item at a specific position (the first, the last, or any given position) of a TreeWidget? I am interested only on items at the parent level, so that I can programmatically select an item at that position.

I searched for more than an hour without finding any clear example.

Thanks in advance!

Upvotes: 0

Views: 841

Answers (1)

Achayan
Achayan

Reputation: 5885

Did you actually looked in docs ?, you can probably look in to itemAt or itemFromIndex

Upvotes: 1

Related Questions