Logo FluentUI

CheckBox QML Type

A styled check box with Fluent Design indicator. More...

Import Statement: import FluentUI 1.0

Properties

Detailed Description

CheckBox is a QML component that extends QtQuick.Controls.CheckBox with Fluent Design theme support. It provides a checkable option with a styled indicator that supports checked, unchecked, and partially checked (tristate) states. The control automatically applies the current theme's accent color and typography.

Usage Example

 import QtQuick
 import FluentUI

 CheckBox {
     text: "Enable feature"
     checked: true
 }

See also QtQuick.Controls.CheckBox.

Property Documentation

accentColor : var

The accent color used for the check indicator when checked. When set, this overrides the accent color provided by the parent's FluentUI attached properties.

checkState : enumeration

The check state of the check box. Can be Qt.Unchecked, Qt.PartiallyChecked, or Qt.Checked. This property is inherited from QtQuick.Controls.CheckBox.

checked : bool

Whether the check box is checked. This property is inherited from QtQuick.Controls.CheckBox.

enabled : bool

Whether the check box is enabled. This property is inherited from QtQuick.Controls.CheckBox.

font : font

The font used for the label text. This property is inherited from QtQuick.Controls.CheckBox.

text : string

The text label displayed next to the check box. This property is inherited from QtQuick.Controls.CheckBox.

tristate : bool

Whether the check box supports a third, partially checked state. The default value is false. This property is inherited from QtQuick.Controls.CheckBox.