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 各プロパティは、2つのタッチポイント間の中心位置を指定します。
scale およびpreviousScale プロパティは、拡大率を提供します。
angle 、previousAngle 、rotation プロパティは、2 つの点間の角度と回転量を指定します。
point1 、point2 、startPoint1 、startPoint2 プロパティは、タッチポイントの位置を提供します。
ジェスチャーを処理しない場合は、onPinchStarted ハンドラ内でaccepted プロパティを false に設定できます。
「PinchArea」も参照してください 。
プロパティのドキュメント
accepted : bool
PinchArea::onPinchStarted ハンドラでこのプロパティをfalseに設定すると、それ以降のピンチイベントは生成されなくなり、そのジェスチャーは無視されます。
これらのプロパティは、2つのタッチポイント間の角度を保持します。
angleは、2つの点間の現在の角度であり、-180から180の範囲にあります。previousAngleは、前回のイベントにおける角度です。rotationは、ピンチジェスチャが開始されてからの総回転量です。
ピンチジェスチャーが開始されたとき、回転量は0.0 となります。
これらのプロパティは、2つのタッチポイント間の中心位置を表します。
centerは現在の中心点ですpreviousCenterは前回のイベントの中心点です。startCenterジェスチャーが開始された時点の中心点
point1 : point [read-only]
point2 : point [read-only]
startPoint1 : point [read-only]
startPoint2 : point [read-only]
これらのプロパティは、ピンチ操作を生成する実際のタッチポイントを表します。
point1また、point2には、各ポイントの現在の位置が格納されています。startPoint1また、startPoint2には、2番目のポイントがタッチされた時点での各ポイントの位置が保持されます。
pointCount : int [read-only]
現在タッチされているポイントの数を保持します。PinchArea は、2つのタッチポイントがジェスチャーを開始するまで反応しませんが、すべてのタッチポイントが離されるまではアクティブな状態を維持します。
これらのプロパティには、2つのタッチポイント間の距離の変化によって決定されるスケール係数が格納されています。
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.