Description
Displays a slider which can be used as input element. The slider also has a progress bar.
API properties
- int min
- Minimum value of the slider
- int max
- Maximum value of the slider
- int value
- Current value of the slider
- real percentage
- Used to calculate the width of the progress bar
- bool textOverlayVertical
- Used to check if the textoverlay needs to be laid out vertically or horizontally
- bool textOverlayVisible
- Makes the text overlay visible or invisible.
- alias markerSize
- Sets the width and height of the position marker. Default value is the size of the image used for the marker.
Signals
- sliderChanged
- Is emitted when the value of the sliders changed
- Parameter:
- int value, the new value for the slider
Functions
-
Example
Slider {
id: mySlider
min: 0
max: 100
value: 50
}