Solved QSlider stylesheet handle gets slightly cut off on linux but looks fine on windows
-
QSlider::groove:horizontal {height:6px; background-color:red;} QSlider::handle{margin:-6px; image: url(:/image/handle.png)}
Is there a way to make the slider on linux not slightly cut off the top and bottom of the handle?
-
I figured it out, it wasn't a stylesheet problem. I had to add
slider->setFixedHeight(20)
and it worked.