Fancy QSlider Stylesheet Qt Developement Blog

For today’s show-and-tell, I give you a nifty-looking QSlider with some nice gradient style applied to it: The handle has a nice hover effect, the bar has a moving gradient as you slide the slider, and it looks good when disabled. Notice also the rounded corners. No image files were harmed in the making of this widget. Here’s the stylesheet code QSlider::groove:horizontal { border: 1px solid #bbb; background: white; height: 10px; border-radius: 4px; } QSlider::sub-page:horizontal

"Fancy QSlider Stylesheet Qt Developement Blog"