FormSliderDelegate QML Type
A form delegate for selecting a value with a slider. More...
| Import Statement: | import org.kde.kirigamiaddons.formcard |
| Inherits: |
Properties
- description : string
- from : real
- label : string
- leading : Item
- stepSize : real
- to : real
- trailing : Item
- value : real
- valueText : string
Signals
- moved()
Detailed Description
Use valueText to show a formatted value beside the label. Handle moved to react only to changes made by the user.
FormCard.FormSliderDelegate {
id: transparencyDelegate
label: i18n("Past event transparency")
from: 0
to: 1
stepSize: 0.05
value: Config.pastEventsTransparencyLevel
valueText: i18n("%1%", Math.round(value * 100))
onMoved: Config.pastEventsTransparencyLevel = value
}

Property Documentation
description : string [default: ""]
Secondary text shown below the slider.
from : real
The minimum value of the slider.
label : string [required]
The label shown above the slider.
leading : Item [default: null]
An item shown before the slider, such as an icon.
stepSize : real
The step size of the slider.
to : real
The maximum value of the slider.
trailing : Item [default: null]
An item shown after the slider, such as an icon.
value : real
The value of the slider.
valueText : string [default: ""]
Optional text shown beside the label, such as a formatted value.
Signal Documentation
moved()
Emitted when the user moves the slider with a mouse, touch, or keyboard.
Note: The corresponding handler is onMoved.