QPanGesture Class
QPanGesture 클래스는 사용자가 수행하는 패닝 제스처를 나타냅니다. 더 보기...
| 헤더: | #include <QPanGesture> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
| qmake: | QT += widgets |
| 상속: | QGesture |
속성
- acceleration : qreal
- delta : QPointF
- lastOffset : QPointF
- offset : QPointF
공개 함수
| virtual | ~QPanGesture() |
| qreal | acceleration() const |
| QPointF | delta() const |
| QPointF | lastOffset() const |
| QPointF | offset() const |
| void | setAcceleration(qreal value) |
| void | setLastOffset(const QPointF &value) |
| void | setOffset(const QPointF &value) |
QPinchGesture 및 QSwipeGesture도 참조하십시오 .
속성 설명서
acceleration : qreal
이 속성은 해당 제스처에 대한 터치 지점의 운동 가속도를 나타냅니다.
액세스 함수:
| qreal | acceleration() const |
| void | setAcceleration(qreal value) |
[read-only] delta : QPointF
이 속성은 이전 입력 위치에서 현재 입력 위치까지의 오프셋을 저장합니다.
이는 본질적으로 offset()와 lastOffset()의 차이점과 동일합니다.
액세스 함수:
| QPointF | delta() const |
lastOffset : QPointF
이 속성은 이 제스처에 대해 기록된 마지막 오프셋을 저장합니다.
마지막 오프셋에는 이 제스처에 대해 이전 제스처 이벤트가 전달되었을 때 ` offset ` 속성에 보고된 사용자의 입력 위치 변화가 포함됩니다.
이 제스처에 대한 정보가 포함된 이전 이벤트가 전달된 적이 없는 경우(즉, 이 제스처 객체가 제스처의 첫 번째 움직임에 대한 정보를 포함하는 경우), 이 속성의 크기는 0입니다.
액세스 함수:
| QPointF | lastOffset() const |
| void | setLastOffset(const QPointF &value) |
offset : QPointF
이 속성은 첫 번째 입력 위치에서 현재 입력 위치까지의 총 오프셋을 나타냅니다.
이 오프셋은 입력 장치에서 제스처가 적용된 사용자 입력의 위치 변화 총량을 측정합니다.
액세스 함수:
| QPointF | offset() const |
| void | setOffset(const QPointF &value) |
© 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.
