Logo FluentUI

Switch QML Type

A styled toggle switch with a Fluent Design indicator. More...

Import Statement: import FluentUI 1.0

Properties

Detailed Description

Switch provides a binary on/off toggle control with a Fluent Design animated indicator. It is commonly used in settings and configuration interfaces to enable or disable features.

Property Documentation

accentColor : var

The accent color used for the switch indicator when in the checked (on) state. Can be a color, string, or Qt.rgba value.

checked : bool

Whether the switch is currently in the on (checked) position.

enabled : bool

Whether the switch can be interacted with. When false, the control appears disabled and does not accept user input.

font : font

The font used for the switch text label.

text : string

The text label displayed next to the switch indicator.