QTapAndHoldGesture Class
QTapAndHoldGesture 클래스는 사용자가 수행하는 탭 앤 홀드(일명 롱탭) 제스처를 설명합니다. 더 보기...
헤더: | #include <QTapAndHoldGesture> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
qmake: | QT += widgets |
상속합니다: | QGesture |
속성
- position : QPointF
공용 함수
virtual | ~QTapAndHoldGesture() |
QPointF | position() const |
void | setPosition(const QPointF &pos) |
정적 공개 멤버
void | setTimeout(int msecs) |
int | timeout() |
상세 설명
Qt의 제스처 처리에 대한 개요와 응용 프로그램에서 제스처를 사용하는 방법에 대한 정보는 위젯과 그래픽 보기의 제 스처 문서를 참조하십시오.
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()
제스처가 트리거되기 전의 시간 초과(밀리초)를 가져옵니다.
인식기가 터치 다운을 감지하고 시간 초과() 후에도 여전히 터치 다운 상태인 경우 QTapAndHoldGesture 을 트리거합니다. 기본값은 700밀리초입니다.
setTimeout()도 참조하세요 .
© 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.