Component for selecting a value in a given range. More...
Inherits SliderTemplate
This element was introduced in qt-components 4.7.
Slider { id:mySlider stepSize:1 valueIndicatorVisible: true minimumValue:0 maximumValue:100 width:200 }
inverted : bool |
If true the minimum position starts from the right (horizontal), bottom (vertical)
maximumValue : real |
Maximum value that is choosed with the slider.
minimumValue : real |
Minimum value that is choosed with the slider.
orientation : int |
Orientation of the component: Qt.Vertical or Qt.Horizontal
Platform specific property for styling the component.
See also SliderStyle.
pressed : bool |
This property is true during the sliding.
stepSize : real |
Distance between two selectable values.
value : real |
Current value of the slider. This property is always updated when pressed is false. Can be also updated live during the sliding.
valueIndicatorMargin : int |
Property default is 1
Distance of the value indicator from the slider.
valueIndicatorPosition : string |
Position of the value indicator. Possible values:
valueIndicatorText : string |
Text that is displayed by the value indicator.
valueIndicatorVisible : bool |
Property default is true
Toggles the visibility of the value indicator.
This function is used by the value indicator to show the current value. Reimplement this function if you want to show different information.
By default the value v is rounded to the nearest int value.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.