Hi..
I have a problem to clear a Scene !!
I used the first methode :
but it doesnt work !!Code:
void myview::clearScene() { QList<QGraphicsItem*> itemsList = scene->items(); QList<QGraphicsItem*>::iterator iter = itemsList.begin(); QList<QGraphicsItem*>::iterator end = itemsList.end(); while(iter != end) { delete item; iter++; } }
then I used another methode:
this that One stucks the application !!Code:
void myview::clear(){ QList<QGraphicsItem*> itemsList = scene->items(); scene->destroyItemGroup(group); }
if someone could help !!
thanks

