Hi, I'm trying to subclass QGraphicsView and put a QGraphicsScene in it. I found out, that it is very easy to implement moving items in the scene, just by setting item flags. Unfortunately my QGraphicsView class has to deal with the same mouse events as its scene, so the mouse events don't reach the scene, which means I can't move the items anymore. I know, that it's possible to pass an event to the superclass, but I couldn't figure out, how to forward it to a member after processing the parents code. I need something like this:

Qt Code:
  1. void mouseDoubleClickEvent (QMouseEvent* event){
  2.  
  3. if (some_condition) {
  4. // process the QGraphicsView stuff
  5. }else{
  6. // forward the event to the scene
  7. }
  8.  
  9. }
To copy to clipboard, switch view to plain text mode