[PyKDE] remaining items on the screen (QGraphicsView, QGraphicsItem)

Krystian Samp samp.krystian at gmail.com
Fri Jan 19 16:27:41 GMT 2007


Hi,

I use:
self.scene().removeItem(self)
where self is a QGraphicsItem object acting as a parent for quite a large
tree of items.

the problem occurs rarely.

best regards,
Krystian


2007/1/19, Remy Anthoine <remy.anthoine at gmail.com>:
>
> Hi,
>
> Which function did you use to "detach" the item from the scene ?
>
> On 1/18/07, Krystian Samp <samp.krystian at gmail.com> wrote:
> > Hi all,
> > Has anyone encountered problems with QGraphicsItems remaining on the
> screen
> > after they got unattached from a scene?
> > From time to time one of the items I'm displaying remains. If I list all
> the
> > items on the scene ( QGraphicsScene.items) this
> > item is not present there, so i guess it shouldn't be displayed -
> > unfortunately it is. Even if I drag another item over the remaining
> > one it doesn't disappear. What can it be?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20070119/e840a6d2/attachment.html


More information about the PyQt mailing list