Hi

I implement QRubberband respectively in the mousePress, mouseMove and mouseRelease methods of QGraphicsScene. But when I do the following I get a runtime error.

void myScene::mouseMoveEvent(QGraphicsMouseMoveEvent* event)
{
myRubberband.setGeometry(QRect(p2, event->screePos()));
QGraphicsScene::mouseMoveEvent(event);

}

The runtime error is : "Do not delete object 'unnamed' during its event handler"

What's wrong with it?