Check button that triggers when held down long enough. More...

Import Statement: import QtQuick.Controls 2.4
Since: Qt 5.9




Detailed Description

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 Customizing DelayButton and Button Controls.

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.

[read-only] 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


This signal is emitted when progress reaches 1.0.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support