예제 #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))
예제 #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))
예제 #3
0
 def __init__(self, tablewidget):
     self.panelwidget = tablewidget.panelwidget
     QScrollBar.__init__(self, tablewidget)
     self.scrollValue = False