DelayButton QML Type

길게 누르면 트리거되는 확인 버튼입니다. 더 보기...

Import Statement: import QtQuick.Controls
Inherits:

AbstractButton

속성

신호

상세 설명

DelayButton은 버튼이 checked 으로 바뀌고 activated() 신호가 전송되기 전에 지연 시간을 포함하는 체크 가능 버튼입니다. 이 지연은 실수로 버튼을 누르는 것을 방지합니다.

현재 진행률은 0.01.0 사이의 소수점 값으로 표시됩니다. activated () 신호가 전송되는 데 걸리는 시간은 밀리초 단위로 측정되며 delay 속성을 사용하여 설정할 수 있습니다.

진행 상황은 버튼의 진행률 표시기로 표시됩니다.

지연 버튼버튼 컨트롤사용자 지정하기를참조하세요 .

속성 문서

delay : int

이 속성은 progress 에서 1.0 에 도달하여 activated()를 전송하는 데 걸리는 시간(밀리초)을 저장합니다.

기본값은 3000 ms입니다.


progress : real

이 속성은 진행률 표시기에 표시된 현재 진행률( 0.0 - 1.0 범위)을 보유합니다.


transition : Transition

이 속성은 버튼을 누르거나 놓을 때 progress 속성에 적용되는 전환을 유지합니다.


신호 문서

activated()

이 신호는 progress1.0 에 도달할 때 발생합니다.

참고: 해당 핸들러는 onActivated 입니다.


© 2025 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.