Qt 6.12 LTS is out! See what's new in the release
blog
How can we create custom slider?
General and Desktop
6
Posts
3
Posters
6.9k
Views
1
Watching
-
I want to create a slider which contain a custom slider handle and i want to paint it according to slider handle position.
-
can we paint some portion of slider and change it according to requirement?
-
I did something that maybe is also for you.
I subclassed QAbstactSlider and reimplemented paint event to draw a custom handler and a buffer progress under it like when you watch videos on the web.
You can find the sources "here":https://gitorious.org/mediadownloader/mediadownloader/blobs/master/main/mbslider.cpp -
thank's