title: How to reverse a QSlider's range
body: <p>i am stuck at trying to reverse the range of a QSlider such that <code>abs(maxVal)</code> always stays on top. </p>
  
  <p><code>slider-&gt;setRange[0,maxVal]</code> should look like the slider on the right </p>
  
  <p><code>slider-&gt;setRange[-maxVal,0]</code> should be reversed/rotated.</p>
  
  <p><a href="https://i.stack.imgur.com/lRT2x.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lRT2x.png" alt="enter image description here"></a></p>
  
  <p>What i could do is not to reverse the range, set a "-" prefix in the SpinBox above and multiply the value by -1 when reading.
  I just wonder if there is the possibility to swap the direction of the slider.</p>