def mousePressEvent(self, event): QHeaderView.mousePressEvent(self, event) if event.button() == Qt.RightButton: self.emit(SIGNAL("mouseRightPressed"), event.globalPos())
def mousePressEvent(self, event): if event.buttons() & Qt.RightButton: self.emit(SIGNAL("right_clicked"), event) return QHeaderView.mousePressEvent(self, event)
def mousePressEvent(self,event): QHeaderView.mousePressEvent(self,event) if event.button()==Qt.RightButton: self.emit(SIGNAL("mouseRightPressed"), event.globalPos())