code: def mousePressEvent( self, event ):
          
          self.setValue(self.valueAt(event.pos().x()))
docs: Sets the value for the slider at the event position.
          
          :param      event | <QMouseEvent>