CheckBoxStyle QML Type▲
-
Import Statement: import QtQuick.Controls.Styles 1.4
-
Since: Qt 5.1
-
Group: CheckBoxStyle is part of Styling Controls
Detailed Description▲
Example:
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
}
}
}
}
Property Documentation▲
background : Component▲
The background under indicator and label.
[read-only] control : CheckBox▲
The CheckBox this style is attached to.
indicator : Component▲
This defines the indicator button.
label : Component▲
This defines the text label.
padding group▲
padding.bottom : int
padding.left : int
padding.right : int
padding.top : int
This grouped property holds the top, left, right and bottom padding.
spacing : int▲
The spacing between indicator and label.