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

Phil Thompson phil at riverbankcomputing.co.uk
Fri Jan 19 18:29:53 GMT 2007


On Thursday 18 January 2007 10:02 am, Krystian Samp 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?

Try with the current PyQt4 (and SIP) snapshot. It has some fixes related to 
ownership of QGraphicsItems - but there are bugs in the Qt C++ code as well.

Phil




More information about the PyQt mailing list