[PyQt] QTreeWidgetItemIterator

Giovanni Bajo rasky at develer.com
Mon Jul 30 23:49:16 BST 2007


On mar, 2007-07-31 at 00:33 +0200, David Boddie wrote:

> It looks like QTreeWidget could provide an __iter__() method to allow
> an improved iterator to be used for constructs such as for loops. That
> would also be useful.

Yes, this is one of those borderline case where sticking to the *exact*
C++ API doesn't seem to bring any concrete advantage. In this case, I'd
rather get a Python-friendly iterator and nothing more.
-- 
Giovanni Bajo




More information about the PyQt mailing list