Could someone please clarify the difference and meaning of setRange and setScale for QWTSlider?
All I want is for the slider's scale to show a range of values from x to y, where y >= x, with 10 ticks on the scale. And of course the slider should slide between x and y.
With the code I'm using now, it doesn't show the endpoints, and the number of ticks is kind of arbitrary.
timelineSlider->setRange(min,max,(max-min)/10);
timelineSlider->setScale(min,max,(max-min)/10);
timelineSlider->setRange(min,max,(max-min)/10);
timelineSlider->setScale(min,max,(max-min)/10);
To copy to clipboard, switch view to plain text mode
Thanks in advance.
Bookmarks