Check button that triggers when held down long enough. 更多...
| import 語句: | import QtQuick.Controls 2.2 |
| Since: | Qt 5.9 |
| 繼承: | AbstractButton |
DelayButton is a checkable button that incorporates a delay before the button becomes checked 和 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
特性。
The progress is indicated by a progress indicator on the button.
另請參閱 Customizing DelayButton and 按鈕控件 .
This property holds the time it takes (in milliseconds) for
progress
to reach
1.0
and emit
activated()
.
默認值為
3000
ms.
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.
此信號發射,當
progress
reaches
1.0
.