But you don't do anything with the graphics view. You override the event handler for the QMainWindow object and not the graphics view.
But you don't do anything with the graphics view. You override the event handler for the QMainWindow object and not the graphics view.
I know, but I don't see how I can do anything with graphics view without altering the code generated from qt designer.
When in Designer, right click your graphics view widget and choose "Promote to...", then input the name of your custom graphics view based class. Then PyUIC should generate code where the standard graphics view object is replaced by an instance of the class you have chosen.
JeffMGreg (25th September 2011)
Bookmarks