ToggleButton QML Type

A push button that toggles between two states. 更多...

Import Statement: import QtQuick.Extras 1.4
开始支持版本: Qt 5.5
基类:

Button

详细描述

An unchecked ToggleButton

An unchecked ToggleButton.

A checked ToggleButton

A checked ToggleButton.

The ToggleButton is a simple extension of Qt Quick Controls' Button, using the checked property to toggle between two states: checked and unchecked. It enhances the visibility of a checkable button's state by placing color-coded indicators around the button.

You can create a custom appearance for a ToggleButton by assigning a ToggleButtonStyle.