[PyKDE] iterating over ListView
John J. Lee
phrxy at csv.warwick.ac.uk
Wed Aug 1 16:04:39 BST 2001
On 1 Aug 2001, Pete Ware wrote:
> Is this what you are looking for?
> item = listview.firstChild ()
> while item:
> if item.isSelected ():
> count = count + 1
> item = item.nextSibling ()
Yes, stupid question of mine (well, actually, not quite: nextSibling won't
go through the whole tree, I think, so you either have to recurse, or use
the other method, whose name I forget, which gets the next visible item).
I realised just after I posted my first message of course, and it's
More information about the PyQt