Logo FluentUI

ToggleButton QML Type

A checkable toggle button. More...

Import Statement: import FluentUI.Controls 1.0

Properties

Detailed Description

ToggleButton is a button that can be toggled between checked and unchecked states. It supports text, icon, highlighted, and enabled properties, making it suitable for toolbar buttons and option toggles.

Property Documentation

checked : bool

Whether the button is in the checked (toggled on) state.

enabled : bool

Whether the button is enabled and can be interacted with.

highlighted : bool

Whether the button is displayed in its highlighted (accent) visual state when checked.

icon : var

The icon displayed on the button. This can be an icon from the FluentIcons font or an image source URL.

text : string

The text label displayed on the button.