Skip to content
AtlasOSFramework API
Browse the docs

AtlasRadioButton

A round radio button with a label; buttons with the same parent form a group and the arrow keys move the choice.

Since 1.3.0

A round radio button with a label. Radio buttons with the same parent form a group: checking one unchecks the others. For a choice between a few views, see AtlasSegmentedControl.

AtlasRadioButton is a Qt Quick Controls RadioButton; text, checked and the rest work as usual.

Example

Column {
    AtlasRadioButton { text: qsTr("Light"); checked: true }
    AtlasRadioButton { text: qsTr("Dark") }
}

Keyboard

Tab visits one radio button of a group: the checked one, or the first if none is. The arrow keys move the choice to the next or previous button of the group, wrapping round (Left and Right swap in right-to-left layouts).