[Kde-games-devel] Re: Delete an QCanvasItem

Codemaster kde-games-devel@mail.kde.org
Sun, 17 Feb 2002 15:40:12 +0100


Hi Andi,
i think that is my problem,
i delete the item during the process of the advance()-function.
Thanks for this tip.
this explain me why my application only crashes when i delete some items here 
and there, and keep alive when i delete other items which i have loaded before
from an file in an sorted order. 

> delete item;
> on the item *after* QCanvas::advance() (or before).
>
> Or do I misunderstand the question?
Yes ;)

Thx a lot,

cu albrecht

ps: here an actuall screenshot of freeforce:
http://codemaster.dynup.net/freeforceweb/gfx/170202ff.png

> _______________________________________________
> kde-games-devel mailing list
> kde-games-devel@mail.kde.org
> http://mail.kde.org/mailman/listinfo/kde-games-devel