Ejemplo n.º 1
0
 def __init__(self, color=Qt.white, parent=None):
     QScrollBar.__init__(self, parent)
     self._color = color
     # self.setAttribute(Qt.WA_TranslucentBackground)
     self.timer = QTimer()
     self.timer.setInterval(500)
     self.timer.setSingleShot(True)
     self.timer.timeout.connect(lambda: self.parent().hideWidget(self))
     self.valueChanged.connect(lambda v: self.timer.start())
     self.valueChanged.connect(lambda: self.parent().showWidget(self))
Ejemplo n.º 2
0
 def __init__(self, color=Qt.white, parent=None):
     QScrollBar.__init__(self, parent)
     self._color = color
     # self.setAttribute(Qt.WA_TranslucentBackground)
     self.timer = QTimer()
     self.timer.setInterval(500)
     self.timer.setSingleShot(True)
     self.timer.timeout.connect(lambda: self.parent().hideWidget(self))
     self.valueChanged.connect(lambda v: self.timer.start())
     self.valueChanged.connect(lambda: self.parent().showWidget(self))
Ejemplo n.º 3
0
 def __init__(self, tablewidget):
     self.panelwidget = tablewidget.panelwidget
     QScrollBar.__init__(self, tablewidget)
     self.scrollValue = False