PinchEvent QML Type
핀치 이벤트에 대한 정보를 지정하기 위함입니다. 더 보기...
| Import Statement: | import QtQuick |
속성
- accepted : bool
- angle : real
- center : point
- point1 : point
- point2 : point
- pointCount : int
- previousAngle : real
- previousCenter : point
- previousScale : real
- rotation : real
- scale : real
- startCenter : point
- startPoint1 : point
- startPoint2 : point
상세 설명
center, startCenter, previousCenter 속성은 두 터치 지점 사이의 중심 위치를 제공합니다.
scale 및 previousScale 속성은 확대/축소 비율을 제공합니다.
angle, previousAngle 및 rotation 속성은 두 점 사이의 각도와 회전량을 제공합니다.
point1, point2, startPoint1, startPoint2 속성은 터치 지점의 위치를 제공합니다.
제스처를 처리하지 않아야 하는 경우, onPinchStarted 핸들러에서 accepted 속성을 false로 설정할 수 있습니다.
PinchArea도 참조하십시오 .
속성 설명서
accepted : bool
PinchArea::onPinchStarted 핸들러에서 이 속성을 false로 설정하면 더 이상 핀치 이벤트가 발생하지 않으며, 해당 제스처가 무시됩니다.
이 속성은 두 터치 지점 사이의 각도를 나타냅니다.
angle는 두 점 사이의 현재 각도로, -180에서 180 사이의 값을 가집니다.previousAngle는 이전 이벤트의 각도입니다.rotation는 핀치 제스처가 시작된 이후의 총 회전 각도입니다.
핀치 제스처가 시작되면 회전 각도는 0.0 입니다.
이 속성은 두 터치 지점 사이의 중심점 위치를 나타냅니다.
center는 현재 중심점이며previousCenter는 이전 이벤트의 중심점입니다.startCenter제스처가 시작되었을 때의 중심점입니다
point1 : point [read-only]
point2 : point [read-only]
startPoint1 : point [read-only]
startPoint2 : point [read-only]
이 속성들은 핀치 동작을 생성하는 실제 터치 지점을 나타냅니다.
point1그리고point2는 점들의 현재 위치를 저장합니다.startPoint1startPoint2는 두 번째 점이 터치되었을 때의 점들의 위치를 저장합니다.
pointCount : int [read-only]
현재 터치된 포인트의 수를 저장합니다. 두 개의 터치 포인트가 제스처를 시작할 때까지는 PinchArea 가 반응하지 않지만, 모든 터치 포인트가 해제될 때까지는 활성 상태를 유지합니다.
이 속성들은 두 터치 지점 간의 거리 변화에 따라 결정되는 배율 계수를 저장합니다.
scale는 현재 스케일 계수입니다.previousScale는 이전 이벤트의 배율 계수입니다.
핀치 제스처가 시작되면 스케일은 1.0 가 됩니다.
© 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.