Customize Slider control (Solved)
-
Hello all,
Could you please guide me how to customize slider, for example: changing position of handle by just dragging itself not by clicking in groove(default behavior of slider). I can not using Mouse Area for slider; when I declare mouse area the handle can not be moved.
Thanks
-
Hello and welcome to devnet,
by changing the position by just dragging you mean that you can click and hold anywhere where the slider is and drag the handle, so you won't need to click and hold the handle?
-
I read the Slider component in this example: http://qt-project.org/doc/qt-4.8/demos-declarative-flickr-qml-flickr-common-slider-qml.html; The position of slider is changed by dragging its handle.
But with the slider control(http://qt-project.org/doc/qt-5.1/qtquickcontrols/qml-qtquick-controls1-slider.html) , when I click on arbitrary point on slider, the position of handle is also changed. I want to customize the slider control like above example; I tried to use mouse area of slider control but It's not sucessful.
-
Well it looks like you can't even modify this function using a SliderStyle. You'll have to create a custom Slider which looks like the Controls Slider, kind of like the one in the example you providet but just with your style.