DelayButton QML Type
Check button that triggers when held down long enough. More...
|Import Statement:||import QtQuick.Controls 2.15|
- delay : int
- progress : real
- transition : Transition
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
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.
delay : int
This property holds the time it takes (in milliseconds) for progress to reach
1.0 and emit activated().
The default value is
[read-only] progress : real
This property holds the current progress as displayed by the progress indicator, in the range
transition : Transition
This property holds the transition that is applied on the progress property when the button is pressed or released.
This signal is emitted when progress reaches
Note: The corresponding handler is
© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.