Exclusive radio button that can be toggled on or off. 更多...
导入语句: | import QtQuick.Controls . |
Since: | Qt Quick Ultralite 1.0 |
继承: |
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 使用 AbstractButton API. The state of the radio button can be set with the checked 特性。
ColumnLayout { RadioButton { checked: true text: qsTr("First") } RadioButton { text: qsTr("Second") } RadioButton { text: qsTr("Third") } }
另请参阅 Controls Styling and 按钮控件 .