Example #1
0
 def mousePressEvent(self, event):
     if event.button() == Qt.LeftButton:
         self.handleMouseEventPos(event.pos())
         self.fLeftClickDown = True
     else:
         self.fLeftClickDown = False
     QProgressBar.mousePressEvent(self, event)
Example #2
0
 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)