PDA

View Full Version : change part of a slider color in video cutter tool



DURGAPRASAD NEELAM
19th April 2014, 20:06
hi,
i am developing video cutter tool, when i load video and select multiple parts of video to cut, i want to change the color of the slider belongs to that particular parts. please let me know how can i customize the slider to achieve this ??
i also attached the slider exactly how i want.

Thanks in advance,
Durga.

ChrisW67
22nd April 2014, 06:51
There is no straightforward tweak to make the existing scroll bar do this. You will need to subclass QSlider or QAbstractSlider, provide an API to set and unset ranges, and substitute your own paintEvent() to draw the slider visual. The task gets even more complex if you want the range handles to be user-interactive.