IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

DelayButton QML Type

A checkable button that triggers an action when held in long enough.

This type was introduced in Qt 5.5.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

DelayButton QML Type▲

  • Import Statement: import QtQuick.Extras 1.4

  • Since: Qt 5.5

  • Inherits: Button

  • Group: DelayButton is part of extras, extras-interactive

Detailed Description▲

A DelayButton

The https:// is a checkable button that incorporates a delay before the button becomes checked and the https:// signal is emitted. This delay prevents accidental presses.

The current progress is expressed as a decimal value between 0.0 and 1.0. The time it takes for https:// to be emitted is measured in milliseconds, and can be set with the https:// property.

The progress is indicated by a progress indicator around the button. When the indicator reaches completion, it flashes.

A DelayButton being held down

A https:// being held down

A DelayButton after being activated

A https:// after being activated

You can create a custom appearance for a https:// by assigning a https://.

Property Documentation▲

 

action : Action▲

This property holds the associated button action.

If a button has an action associated, the action defines the button's properties like checked, text, tooltip etc.

When an action is set, it's still possible to override the https://, https://, https://, and https:// properties.

The default value is null.

activeFocusOnPress : bool▲

This property specifies whether the button should gain active focus when pressed.

The default value is false.

checkable : bool▲

This property holds whether the button is checkable.

The default value is false.

checked : bool▲

This property holds whether the button is checked.

Only checkable buttons can be checked.

The default value is false.

delay : int▲

This property holds the time it takes (in milliseconds) for https:// to reach 1.0 and emit https://.

The default value is 3000 ms.

exclusiveGroup : ExclusiveGroup▲

This property holds the https:// that the button belongs to.

The default value is null.

[read-only] hovered : bool▲

This property indicates whether the control is being hovered.

iconName : string▲

The image label source as theme name. When an icon from the platform icon theme is found, this takes precedence over https://.

This property requires https://.

iconSource : url▲

This property holds the icon shown on the button. If the button has no icon, the https:// property will be an empty string.

The default value is the empty string.

[read-only] pressed : bool▲

This property holds whether the button is being pressed.

[read-only] progress : real▲

This property holds the current progress as displayed by the progress indicator, in the range 0.0 - 1.0.

style : Component▲

The style Component for this control.

See Also▲

See also Qt Quick Controls Styles QML Types

text : string▲

This property holds the text shown on the button. If the button has no text, the https:// property will be an empty string.

The default value is the empty string.

tooltip : string▲

This property holds the button tooltip.

Signal Documentation▲

 

activated()▲

This signal is emitted when https:// reaches 1.0 and the button becomes checked.

The corresponding handler is onActivated.

clicked()▲

This signal is emitted when the button is clicked.

The corresponding handler is onClicked.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+   

Ce document est disponible sous la licence https:// telle que publiée par la Free Software Foundation.