What do you mean by "doesn't work"? Please, be more exact next time. A QGraphicsItem removes itself from the scene once it gets deleted (as mentioned in destructor docs) so you can just do:
Qt Code:
qDeleteAll(scene->items());To copy to clipboard, switch view to plain text mode





Reply With Quote



Bookmarks