[PyKDE] Removing a QListViewItem

Janos Blazi jblazi at gmx.de
Sat Jun 1 22:24:00 BST 2002


EVOLUTION MAKES ME CRAZY!

The PyQt documentation and the Qt documentation contradict each other.
Let <i> be an QListViewItem and <lv> a QListView. Then

The Qt original documentation says that i.__del__() would suffice and
the takeItem function should not be called. It is called by delete (of
C++).
The PyQt doc says, we should call first takeItem and then "del()", but I
think __del__() is meant.
If the latter is true for some PyQt specific reason, then maybe it
should be stated, that the PyQt doc should be followed in spite of the
Qt doc.

J.B.









More information about the PyQt mailing list