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