PDA

View Full Version : Hide QSlider groove



kwikness
18th August 2010, 03:41
Does anyone know an easy way to hide the groove of a QSlider?

I've tried using setStyleSheet with stuff like QSlider::groove::horizontal { visibility:hidden; } but I haven't found anything that works yet.

Ginsengelf
18th August 2010, 07:21
Hi, according to the style sheet docs you have one colon too much:

QSlider::groove:horizontal { visibility:hidden; }

I am not sure if the "visibility" property exists. If not, you could try to set the width and height to zero.

Ginsengelf