ToggleButtonStyle QML Type

Provides custom styling for ToggleButton . 更多...

import 語句: import QtQuick.Controls.Styles 1.4
Since: Qt 5.5

特性

詳細描述

You can create a custom toggle button by replacing the same delegates that ButtonStyle provides.

特性文檔編製

checkedDropShadowColor : color

The color that is used for the drop shadow below the checked state indicator.

另請參閱 uncheckedDropShadowColor .

checkedGradient : 漸變

The gradient that is displayed on the checked state indicator.

另請參閱 uncheckedGradient and inactiveGradient .

[read-only] control : ToggleButton

The ToggleButton that this style is attached to.

inactiveGradient : 漸變

The gradient that is displayed on the inactive state indicator. The inactive state indicator will be the checked gradient when the button is unchecked, and the unchecked gradient when the button is checked.

另請參閱 checkedGradient and uncheckedGradient .

uncheckedDropShadowColor : color

The color that is used for the drop shadow below the checked state indicator.

另請參閱 checkedDropShadowColor .

uncheckedGradient : 漸變

The gradient that is displayed on the unchecked state indicator.

另請參閱 checkedGradient and inactiveGradient .