With the latest macOS and Qt versions, the gradient slider handle is always rendered at the left edge of the widget. (I'm not sure if updating macOS or Qt is relevant, but I just recently did both and just noticed this bug.)
Removing these lines seems to fix the bug (gradient_slider.cpp, end of GradientSlider::paintEvent):
I've tested this change on macOS (High Sierra), Linux (with Breeze and Fusion styles) and Windows. It does not seem to have any adverse effects. I haven't been able to test it on older macOS versions, so I don't know if it breaks something there.
With the latest macOS and Qt versions, the gradient slider handle is always rendered at the left edge of the widget. (I'm not sure if updating macOS or Qt is relevant, but I just recently did both and just noticed this bug.)
Removing these lines seems to fix the bug (gradient_slider.cpp, end of GradientSlider::paintEvent):
I've tested this change on macOS (High Sierra), Linux (with Breeze and Fusion styles) and Windows. It does not seem to have any adverse effects. I haven't been able to test it on older macOS versions, so I don't know if it breaks something there.