RadioButton QML Type

Exclusive radio button that can be toggled on or off. More...

Import Statement: import QtQuick.Controls
Since: Qt Quick Ultralite 1.0


Detailed Description

RadioButton presents an option button that can be toggled on (checked) or off (unchecked). Radio buttons are typically used to select one option from a set of options.

RadioButton inherits its API from AbstractButton. For instance, you can set text and react to clicks using the AbstractButton API. The state of the radio button can be set with the checked property.

Column {
    RadioButton {
        checked: true
        text: qsTr("First")
    RadioButton {
        text: qsTr("Second")
    RadioButton {
        text: qsTr("Third")

See also Controls Styling and Button Controls.

Available under certain Qt licenses.
Find out more.