RadioSelector QML Type

A Component that allows sitching between multiple options. Example:. More...

Import Statement: import org.kde.kirigamiaddons.labs.components
Inherits:

Item

Properties

Detailed Description

Components.RadioSelector {
  consistentWidth: false
  actions: [
      Kirigami.Action {
          text: i18nc("@option:radio", "Week")
          icon.name: "view-calendar-week-symbolic"
      },
      Kirigami.Action {
          text: i18nc("@option:radio", "3 Days")
          icon.name: "view-calendar-upcoming-days-symbolic"
      },
      Kirigami.Action {
          text: i18nc("@option:radio", "1 Day")
          icon.name: "view-calendar-day-symbolic"
      }
  ]
}

Property Documentation

actions : list<Action>

This property holds a list of actions, each holding one of the options.


consistentWidth : bool [default: false]

This property holds whether all the items should have the same width.


selectedIndex : int

This property holds the currently selected option.

By default, it's the first actions or -1 if no actions is set.