Hi,
I want to update scene/view after deleting all items from scene.
Even if deleting all items from scene and calling scene's update, graphics view's repaint, screen is showing all items. I have minimize and then maximize the window to refresh it.
Please tell me how to do ?
Tell me what is wrong in following code ??
my code is

//delete all items
QList<QGraphicsItem *> l = scene->items();
for(QList<QGraphicsItem *>::iterator it = l.begin(); it != l.end(); ++it)
{
QGraphicsItem *item = *it;
scene->removeItem(item);
delete item;
}

//Delete scene
delete scene;

//Update view
view->repaint();