이 페이지에서

QTapAndHoldGesture Class

QTapAndHoldGesture 클래스는 사용자가 수행하는 탭 앤 홀드(일명 롱탭) 제스처를 정의합니다. 더 보기...

헤더: #include <QTapAndHoldGesture>
CMake: find_package(Qt6 REQUIRED COMPONENTS Widgets)
target_link_libraries(mytarget PRIVATE Qt6::Widgets)
qmake: QT += widgets
상속: QGesture

속성

공용 함수

virtual ~QTapAndHoldGesture()
QPointF position() const
void setPosition(const QPointF &pos)

정적 공용 멤버

void setTimeout(int msecs)
int timeout()

상세 설명

Qt Widgets에서의 제스처 처리 개요 및 애플리케이션에서 제스처를 사용하는 방법에 대한 정보는 ‘위젯 및 그래픽 뷰의 제스처(Gestures in Widgets and Graphics View )’ 문서를 참조하십시오.

QPanGesture 및 QPinchGesture도 참조하십시오 .

속성 문서

position : QPointF

이 속성은 탭의 위치를 나타냅니다

액세스 함수:

QPointF position() const
void setPosition(const QPointF &pos)

멤버 함수 문서

[virtual noexcept] QTapAndHoldGesture::~QTapAndHoldGesture()

소멸자.

[static] void QTapAndHoldGesture::setTimeout(int msecs)

제스처가 실행되기 전까지의 대기 시간을 밀리초 단위로 설정합니다.

인식기는 터치 다운을 감지하며, 이후 msecs 시점에 터치가 여전히 유지되고 있으면 QTapAndHoldGesture 를 트리거합니다. 기본값은 700밀리초입니다.

timeout()도 참조하십시오 .

[static] int QTapAndHoldGesture::timeout()

제스처가 실행되기까지의 타임아웃 시간을 밀리초 단위로 가져옵니다.

인식기는 터치 다운을 감지하며, timeout()이 호출된 후에도 터치가 여전히 유지되고 있다면 QTapAndHoldGesture 을 트리거합니다. 기본값은 700밀리초입니다.

setTimeout()도 참조하십시오 .

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