[PyKDE] Delete of QListViewItems

Per Gummedal p.g at figu.no
Fri Nov 10 16:42:32 GMT 2000


The QT documentation of QListViewItem::takeItem says:
  Removes item from this object's list of children and causes an update
  of the screen display.  The item is not deleted.
  You should normally not need to call this function,
  as QListViewItem::~QListViewItem() calls it.
  The normal way to delete an item is delete.

In PyQt if I use del(item) the item is not removed from the list,
if i use takeItem(item) it is, but according to the documentation it
will not be deleted (from memory).

Is this a bug, or what function should I use to delete items ?

Per






More information about the PyQt mailing list