def mousePressEvent(self, event): if event.button() == Qt.LeftButton: self.handleMouseEventPos(event.pos()) self.fLeftClickDown = True else: self.fLeftClickDown = False QProgressBar.mousePressEvent(self, event)
def mousePressEvent(self, event): if event.button() == Qt.LeftButton: self.handleMouseEventPos(event.pos()) self._left_click_down = True else: self._left_click_down = False return QProgressBar.mousePressEvent(self, event)