PinchEvent QML Type

핀치 이벤트에 대한 정보를 지정합니다. 자세히...

Import Statement: import QtQuick

속성

상세 설명

핀치이벤트 유형은 QtQuick 1.1에 추가되었습니다.

center, startCenter, previousCenter 속성은 두 터치 포인트 사이의 중심 위치를 제공합니다.

scalepreviousScale 속성은 배율을 제공합니다.

angle, previousAnglerotation 속성은 두 점 사이의 각도와 회전량을 제공합니다.

point1, point2, startPoint1, startPoint2 속성은 터치 포인트의 위치를 제공합니다.

제스처가 처리되지 않아야 하는 경우 onPinchStarted 핸들러에서 accepted 속성을 false로 설정할 수 있습니다.

PinchArea도 참조하세요 .

속성 문서

center : point [read-only]

previousCenter : point [read-only]

startCenter : point [read-only]

이 속성은 두 터치 포인트 사이의 중심점 위치를 유지합니다.

  • center 는 현재 중심점
  • previousCenter 는 이전 이벤트의 중심점입니다.
  • startCenter 는 제스처가 시작되었을 때의 중심점입니다.

previousScale : real [read-only]

scale : real [read-only]

이 속성은 두 터치 포인트 사이의 거리 변화에 따라 결정되는 스케일 계수를 보유합니다.

  • scale 는 현재 축척 계수입니다.
  • previousScale 는 이전 이벤트의 스케일 계수입니다.

핀치 제스처가 시작되면 배율은 1.0 입니다.


angle : real [read-only]

previousAngle : real [read-only]

rotation : real [read-only]

이 속성은 두 터치 포인트 사이의 각도를 유지합니다.

  • angle 는 -180~180 범위의 두 점 사이의 현재 각도입니다.
  • previousAngle 는 이전 이벤트의 각도입니다.
  • rotation 는 핀치 제스처가 시작된 이후의 총 회전입니다.

핀치 제스처가 시작되면 회전은 0.0 입니다.


point1 : point [read-only]

point2 : point [read-only]

startPoint1 : point [read-only]

startPoint2 : point [read-only]

이러한 속성은 핀치를 생성하는 실제 터치 포인트를 제공합니다.

  • point1point2 는 포인트의 현재 위치를 유지합니다.
  • startPoint1startPoint2 는 두 번째 포인트가 터치되었을 때의 포인트 위치를 유지합니다.

accepted : bool

PinchArea::onPinchStarted 핸들러에서 이 프로퍼티를 false로 설정하면 더 이상 핀치 이벤트가 생성되지 않고 제스처가 무시됩니다.


pointCount : int [read-only]

현재 터치한 포인트 수를 보유합니다. PinchArea 은 두 개의 터치 포인트가 제스처를 시작할 때까지 반응하지 않지만 모든 터치 포인트가 해제될 때까지 활성 상태로 유지됩니다.


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