This is QSlider which supports the smoothly draggable handle, direct handle placement to click position for media(audio, video).
PyQt5 >= 5.8
python -m pip install pyqt-media-slider
pressed(int)
Signal emit when presses the handledragged(int)
Signal emit when drags the handlereleased(int)
Signal emit when releases the handle
from PyQt5.QtWidgets import QWidget, QHBoxLayout, QApplication
from pyqt_media_slider.mediaSlider import MediaSlider
class MediaSliderExample(QWidget):
def __init__(self):
super().__init__()
self.__initUi()
def __initUi(self):
self.__slider = MediaSlider()
lay = QHBoxLayout()
lay.addWidget(self.__slider)
self.setLayout(lay)
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
player = MediaSliderExample()
player.show()
app.exec_()
Result