Hello all,

I have implemented QGraphicsItem, and when the item receives a mouseEvent I call a method in my implemented QGraphicsView which deletes the scene. The problem is that the event still tries to exit and crashes. I have tried to pass the scene to the item and remove the item from the scene one line before (and after) calling the method in QGraphicsView. Both of these approaches do not work.

Items gets mouseEvent->calls QGraphicsView (forward declaration used; each has an instance of the other)->QGraphicsView deletes scene->crashes from inside QGraphicsItem.

When my program was written with only widgets, I emitted a signal and had no troubles with deleting all the widgets, etc...

Any thoughts anyone?

Thanks!

Jonathan