FormSwitchDelegate QML Type

A Form delegate that corresponds to a switch. More...

Import Statement: import org.kde.kirigamiaddons.formcard

Properties

Detailed Description

This component is used to create a purely on/off toggle for a single setting.

Use the inherited AbstractButton.text property to define the main text of the button.

If you need an on/off/tristate toggle, use a FormCheckDelegate instead.

If you need multiple values for the same setting, use a FormComboBoxDelegate instead.

If you need multiple toggles for the same setting, use a FormRadioDelegate instead.

See also AbstractButton, FormCheckDelegate, FormComboBoxDelegate, and FormRadioDelegate.

Property Documentation

description : string

A label containing secondary text that appears under the inherited text property.

This provides additional information shown in a faint gray color.


leading : var

This property holds an item that will be displayed to the left of the delegate's contents.


leadingPadding : real

This property holds the padding after the leading item.


trailing : var

This property holds an item that will be displayed to the right of the delegate's contents.


trailingPadding : real

This property holds the padding before the trailing item.