이 페이지에서

DelayButton QML Type

일정 시간 동안 길게 누르면 작동하는 확인 버튼. 더 보기...

Import Statement: import QtQuick.Controls
Inherits:

AbstractButton

속성

신호

상세 설명

DelayButton은 버튼이 checked 상태가 되고 activated() 신호가 발신되기 전에 지연 시간을 두는 체크 가능한 버튼입니다. 이 지연 시간은 실수로 버튼을 누르는 것을 방지합니다.

현재 진행 상황은 0.0 과 1.0 사이의 소수 값으로 표시됩니다. activated() 신호가 발송되기까지 걸리는 시간은 밀리초 단위로 측정되며, delay 속성을 통해 설정할 수 있습니다.

진행 상황은 버튼에 표시된 진행 표시기로 나타납니다.

'DelayButton 및 Button 컨트롤사용자 지정' 항목도 참조하십시오 .

속성 설명서

delay : int

이 속성은 progress 가 1.0 에 도달하여 activated()를 반환하는 데 걸리는 시간(밀리초 단위)을 나타냅니다.

기본값은 3000 ms입니다.

progress : real

이 속성은 진행률 표시기에 표시되는 현재 진행률을 ‘ 0.0 ’ ~ ‘ 1.0 ’ 범위 내에서 저장합니다.

transition : Transition

이 속성은 버튼이 눌리거나 놓일 때 ` progress ` 속성에 적용되는 전환 효과를 저장합니다.

신호 문서

activated()

progress 가 1.0 에 도달하면 이 신호가 발생합니다.

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

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