QSwipeGesture Class

QSwipeGesture 클래스는 사용자가 수행하는 스와이프 제스처를 설명합니다. 더 보기...

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

공용 유형

enum SwipeDirection { NoDirection, Left, Right, Up, Down }

속성

공공 기능

virtual ~QSwipeGesture()
QSwipeGesture::SwipeDirection horizontalDirection() const
void setSwipeAngle(qreal value)
qreal swipeAngle() const
QSwipeGesture::SwipeDirection verticalDirection() const

자세한 설명

Qt의 제스처 처리에 대한 개요와 응용 프로그램에서 제스처를 사용하는 방법에 대한 정보는 위젯과 그래픽 보기의 제 스처 문서를 참조하십시오.

QPanGestureQPinchGesture도 참조하십시오 .

멤버 유형 문서

enum QSwipeGesture::SwipeDirection

이 열거형은 가로 및 세로 축을 따라 제스처가 움직일 수 있는 방향을 설명합니다.

Constant설명
QSwipeGesture::NoDirection0특정 축에서 제스처와 관련된 동작이 없습니다.
QSwipeGesture::Left1제스처에 왼쪽으로 수평 이동이 포함되었습니다.
QSwipeGesture::Right2제스처에 오른쪽으로 수평 이동이 포함되었습니다.
QSwipeGesture::Up3제스처에 위쪽 수직 동작이 포함되었습니다.
QSwipeGesture::Down4제스처에 아래쪽 수직 모션이 포함되었습니다.

속성 문서

[read-only] horizontalDirection : const SwipeDirection

이 속성은 제스처의 수평 방향을 보유합니다.

제스처에 가로 구성 요소가 있는 경우 가로 방향은 왼쪽 또는 오른쪽이며, 그렇지 않은 경우 NoDirection 입니다.

함수에 액세스합니다:

QSwipeGesture::SwipeDirection horizontalDirection() const

verticalDirectionswipeAngle참조하세요 .

swipeAngle : qreal

이 속성은 제스처와 관련된 동작의 각도를 보유합니다.

제스처에 수평 또는 수직 구성 요소가 있는 경우 스와이프 각도는 표준 위젯 좌표계를 사용하여 정의된 동작 방향과 x축 사이의 각도를 나타냅니다.

기능에 액세스합니다:

qreal swipeAngle() const
void setSwipeAngle(qreal value)

horizontalDirectionverticalDirection참조하세요 .

[read-only] verticalDirection : const SwipeDirection

이 속성은 제스처의 수직 방향을 보유합니다.

제스처에 세로 구성 요소가 있는 경우 세로 방향은 위 또는 아래이며, 그렇지 않은 경우 NoDirection 입니다.

함수에 액세스합니다:

QSwipeGesture::SwipeDirection verticalDirection() const

horizontalDirectionswipeAngle참조하십시오 .

멤버 함수 문서

[virtual noexcept] QSwipeGesture::~QSwipeGesture()

파괴자.

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