Hi
I want to design a customized vertical slider. How can i do that.
I like to give customized color or image to slider.
Please provide some help
Hi
I want to design a customized vertical slider. How can i do that.
I like to give customized color or image to slider.
Please provide some help
You have 2 options.
1. Use style sheet.
2. Use QStyle (Create your own style by subclassing QStyle.)
Hi
Using style sheet you can easily change your sliderQt Code:
QSlider::groove:vertical { background-image: url(:/new/prefix1/SliderTruckFullSpk.png); left: 0px; right:0px; /* absolutely position 4px from the left and right of the widget. setting margins on the widget should work too... */} QSlider::handle:vertical {height:17px;width:17px; background-image: url(:/new/prefix1/speakerindicator_Idle.png); left: 1px; right: 0px;top:0px;bottom:4px; } QSlider::sub-page:vertical { background-image: url(:/new/prefix1/SliderTruck.png);left: 0px; right:0px; }To copy to clipboard, switch view to plain text mode
Bookmarks