def event self event if event type QEvent MouseButtonPress and event b

1
2
3
4
5
6
def event(self, event):
if event.type() == QEvent.MouseButtonPress and event.button() == Qt.RightButton:
print 'нажата right' #свой код
return QWebView.event.accept()