Ok, I get your problem now. Following should be useful for you:
Qt Code:
  1. void MyClass::MousePressEvent(QMouseEvent *event)
  2. {
  3. if(!qApp->widgetAt(event->globalPos())->inherits("QPushButton"))
  4. {
  5. func1();
  6. func2();
  7. }
  8. return QGraphicsView::MousePressEvent(event);
  9. }
To copy to clipboard, switch view to plain text mode 

I have not compiled this code, this is just for reference. Please do it as it fits your program.