Pages
API Documentation
On this page

FormSwitchDelegate QML Type

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

  • Import Statement: import org.kde.kirigamiaddons.formcard

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, 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 : Item

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 : Item

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.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.