Hi, all!

I want to design a customized qslider, the groove of which is rendered in two parts. Each part is in a different color. I find the following css code
Qt Code:
  1. QSlider::add-page:horizontal {
  2. background: white;
  3. }
  4.  
  5. QSlider::sub-page:horizontal {
  6. background: navy;
  7. }
To copy to clipboard, switch view to plain text mode 
However, I want the separation position of the groove not decided by the handle, but by some specific value within the range of slider itself, and the seperation position can change in the running program. Please help me.

Regards,
Oscar