But you don't do anything with the graphics view. You override the event handler for the QMainWindow object and not the graphics view.