Fixed it this way if anyone's interested:
class QJumpSlider(QtGui.QSlider): def __init__(self, parent = None): super(QJumpSlider, self).__init__(parent) def mousePressEvent(self, event): #Jump to click position window.seekMusic(QtGui.QStyle.sliderValueFromPosition(self.minimum(), self.maximum(), event.x(), self.width())) self.setValue(QtGui.QStyle.sliderValueFromPosition(self.minimum(), self.maximum(), event.x(), self.width())) def mouseMoveEvent(self, event): #Jump to pointer position while moving window.seekMusic(QtGui.QStyle.sliderValueFromPosition(self.minimum(), self.maximum(), event.x(), self.width())) self.setValue(QtGui.QStyle.sliderValueFromPosition(self.minimum(), self.maximum(), event.x(), self.width()))where 'window' is the main app made in main() and seekMusic is a function from the MusicPlayer class:
if __name__ == "__main__": app = QApplication(sys.argv) app.setWindowIcon(QIcon("icons/logo.png")) window = MusicPlayer() window.show() sys.exit(app.exec_())