Sorry..if this question is too basic

but..I did re implement the QGrahpicsScene

what I have below isn't working

Qt Code:
  1. class scene: public QGraphicsScene
  2. {
  3. public:
  4. scene()
  5. {
  6.  
  7. }
  8.  
  9. void mouseReleaseEvent(QMouseEvent *event)
  10. {
  11. clear();
  12. }
  13.  
  14. };
To copy to clipboard, switch view to plain text mode 


Everytime I drag a graphicsitem from one place to another and release the mouse button..the scene doesn't clear...

Please help