title: Moving QSlider to Mouse Click Position
body: <p>I have a QSlider that I want to move to the position of the mouse cursor when the user presses the left mouse button. I've been hunting around and couldn't find anything that was recent and solved my problem.</p>
  
  <p><a href="https://i.stack.imgur.com/9VXYj.png" rel="noreferrer"><img src="https://i.stack.imgur.com/9VXYj.png" alt="Progress Bar"></a></p>
  
  <p>This is the slider I have. I want to be able to click to have the slider jump to the position where the mouse clicks. I can drag the slider, but I want to be able to click. I tested out clicking on the slider in the Dolphin file manager. It incremented rather than jumping to the exact position of the mouse.</p>
  
  <p>Looking at the <a href="http://doc.qt.io/qt-5/qslider.html" rel="noreferrer">Qt5 documentation</a></p>
  
  <blockquote>
    <p>QSlider has very few of its own functions [...]</p>
  </blockquote>
  
  <p>This would indicate that there is no built-in way to do this. Is there no way to get where the mouse clicked and move the slider to that point?</p>