2

Is there any way to customize the groove of QSlider? I want to colorize some part of groove based on some value. I try setStyleSheet() but it's not working as I have expected.

My similar question was asked before here.

Like this:

Based on a range like 10, 20 is invalid range and must be red.

K. B.
  • 3,342
  • 3
  • 19
  • 32
Kate
  • 43
  • 5

1 Answers1

0

I think you may find this link useful. This problem relates to QLinearGradient of the groove.

I hope it helps.

Mohammed Deifallah
  • 1,290
  • 1
  • 10
  • 25