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

DelayButton QML Type

Check button that triggers when held down long enough.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

DelayButton QML Type

  • Import Statement: import QtQuick.Controls

  • Inherits: AbstractButton

  • Group: DelayButton is part of qtquickcontrols-buttons

Detailed Description

Image non disponible

DelayButton is a checkable button that incorporates a delay before the button becomes checked and the activated() 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 activated() to be emitted is measured in milliseconds, and can be set with the delay property.

The progress is indicated by a progress indicator on the button.

See Also

Property Documentation

 

delay : int

This property holds the time it takes (in milliseconds) for progress to reach 1.0 and emit activated().

The default value is 3000 ms.

progress : real

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

transition : Transition

This property holds the transition that is applied on the progress property when the button is pressed or released.

Signal Documentation

 

activated()

This signal is emitted when progress reaches 1.0.

The corresponding handler is onActivated.

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