[PyKDE] How do I delete a QCanvasItem?

Boudewijn Rempt boud at valdyas.org
Fri Jun 14 20:35:01 BST 2002


On Friday 14 June 2002 19:31, Stephen Green wrote:
> Ok, I think I found out what causes the problem in my code.  Here is a
> small part of my program that will crash.  As it is, if you create a point
> in the program, then delete the point, then try to create a new point, it
> usually gives a segmentation fault.  But if you comment lines 14 and 18, it
> works fine (but it still sometimes doesn't quit properly).  These lines add
> a second frame to the QCanvasSprite (they make it so that the color can be
> changed).
>
> Does this crash for you guys too, or is it just me?  And should I not be
> creating other frames in this way?  I could probably make the points out of
> QCanvasEllipses instead, and change the brush, but I'd still like to figure
> out what's going wrong here.
>

Yes, I've got a segfault, too.
-- 
Boudewijn Rempt | http://www.valdyas.org




More information about the PyQt mailing list