RadioButton QML Type
A radio button control. More...
Import Statement: | import Qt.labs.controls 1.0 |
Inherits: |
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.
A radio button in its normal state. | |
A radio button that is checked. | |
A radio button that has active focus. | |
A radio button that is disabled. |
Radio buttons are auto-exclusive by default. Only one button can be checked at any time amongst radio buttons that belong to the same parent item; checking another button automatically unchecks the previously checked one.
ColumnLayout { RadioButton { checked: true text: qsTr("First") } RadioButton { text: qsTr("Second") } RadioButton { text: qsTr("Third") } }
Note: Types in the Qt.labs module are not guaranteed to remain compatible in future versions.
See also ButtonGroup, Customizing RadioButton, and Button Controls.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/archives/qt-5.6/qml-qt-labs-controls-radiobutton.html