hi
i need to number the tickmarks of QSlider.how to proceed with it. i have seen this is possible in Qwt but i am using a subclassed QSlider which has other functions and hence i need to number the tickmarks of QSlider .
hi
i need to number the tickmarks of QSlider.how to proceed with it. i have seen this is possible in Qwt but i am using a subclassed QSlider which has other functions and hence i need to number the tickmarks of QSlider .
Qt Code:
int numberOfTicks = (slider->maximum() - slider->minimum())/slider->tickInterval()+1;To copy to clipboard, switch view to plain text mode
Isn't he talking about labeling the slider's ticks? in this case, it is not possible by default
Right, I misunderstood the question. By default - no, but one can subclass, reimplement sizeHint and paint the numbers in the paintEvent. I wouldn't do that though...
Wont it be too congested even if you do that ??
How about setting a tooltip as the the slider value
Bookmarks