[PyKDE] How do I delete a QCanvasItem?

Stephen Green estebanverde at hotmail.com
Wed Jun 12 18:33:00 BST 2002



>From: Moray Taylor <mtaylor at lowebroadway.com>
>
>I think I have figured out how to do it.
>
>MyCanvasItem.setCanvas(None)
>
>It gets rid of it, and seems to free any memory it was using.
>
>Any comments?
>
>Moray
>


I tried doing that, and it seems to make the canvas item disappear, but 
shortly thereafter I always get a segmentation fault.  I can't figure out 
why this is happening, since I'm pretty sure I've removed all references to 
the canvas item.
Any ideas?

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com




More information about the PyQt mailing list