Hi,<br><br>I use:<br>self.scene().removeItem(self)<br>where self is a QGraphicsItem object acting as a parent for quite a large tree of items.<br><br>the problem occurs rarely.<br><br>best regards,<br>Krystian<br><br><br><div>
<span class="gmail_quote">2007/1/19, Remy Anthoine <<a href="mailto:remy.anthoine@gmail.com">remy.anthoine@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>Which function did you use to "detach" the item from the scene ?<br><br>On 1/18/07, Krystian Samp <<a href="mailto:samp.krystian@gmail.com">samp.krystian@gmail.com</a>> wrote:<br>> Hi all,<br>
> Has anyone encountered problems with QGraphicsItems remaining on the screen<br>> after they got unattached from a scene?<br>> From time to time one of the items I'm displaying remains. If I list all the<br>
> items on the scene ( QGraphicsScene.items) this<br>> item is not present there, so i guess it shouldn't be displayed -<br>> unfortunately it is. Even if I drag another item over the remaining<br>> one it doesn't disappear. What can it be?
<br></blockquote></div><br>