[PyKDE] ListViewItems and garbage collection

Richard Jones rjones at ekit-inc.com
Sun Jul 21 10:54:00 BST 2002


On Sun, 21 Jul 2002 5:40 pm, Neil Stevens wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> How do I keep my KListViewItems and instances of classes derived from
> KListViewItem from being garbage collected?

I'm pretty sure you just need to keep your own reference to them. Chuck them 
in a list, or a mapping if you're going to change the list contents a lot.


   Richard




More information about the PyQt mailing list