[Kde-perl] PerlQT Canvas Sample?

Germain Garand germain at ebooksfrance.org
Sat Mar 13 23:28:15 CET 2004


Le Samedi 13 Mars 2004 19:59, Ashley Winters a écrit :
> QCanvasItem objects are also subject to that parent requirement, but
> PerlQt is smart enough to check ->canvas() instead of ->parent() on
> them, so you shouldn't need to do anything else special for it to work.

ermm, I'm afraid it's not :-}
They have to be kept somewhere too.

We have a problem with those because it's the only *Item class that doesn't 
have a corresponding takeItem() method in the container...
so people wouldn't be able to remove them from the canvas...

This is really an unfortunate state of things. 
Maybe we should drop the DWIM here and introduce an explicit delete() method 
for *Items?





More information about the Kde-perl mailing list