QGraphicsView::wheelEvent() is not a signal so there is nothing to connect. What you want to do is override wheelEvent() not overload it.
I've just dabbled in Python so I'm not sure this is correct, but at the bottom of your mainWindow class add the following and delete the "self.connect" statement:
// added this line so next line would indent
self.nodeDropGraphicsView.wheelEvent = self.wheelEvent
def wheelEvent(self, event):
print("wheel event")
// added this line so next line would indent
self.nodeDropGraphicsView.wheelEvent = self.wheelEvent
def wheelEvent(self, event):
print("wheel event")
To copy to clipboard, switch view to plain text mode
Bookmarks