Тип QML RadioButtonStyle
Предоставляет настраиваемую стилизацию для RadioButton. Подробнее...
| Заявление об импорте: | import QtQuick.Controls.Styles 1.4 |
| С момента: | Qt 5.1 |
Свойства
- background : Компонент
- control : RadioButton
- indicator : Компонент
- label : Компонент
- spacing : int
Подробное описание
Пример:
RadioButton {
text: "Radio Button"
style: RadioButtonStyle {
indicator: Rectangle {
implicitWidth: 16
implicitHeight: 16
radius: 9
border.color: control.activeFocus ? "darkblue" : "gray"
border.width: 1
Rectangle {
anchors.fill: parent
visible: control.checked
color: "#555"
radius: 9
anchors.margins: 4
}
}
}
} Документация по свойствам
background : Component
Фон под индикатором и меткой.
[только для чтения] control : RadioButton
Этот стиль прикреплен к RadioButton.
indicator : Component
Определяет индикаторную кнопку.
label : Component
Определяет текстовую метку.
spacing : int
Отступ между индикатором и меткой.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.15/qml-qtquick-controls-styles-radiobuttonstyle.html