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
詳細説明
PinchEvent タイプはQtQuick 1.1 で追加された。
center
,startCenter
,previousCenter
プロパティは、2つのタッチポイント間の中心位置を提供します。
scale
およびpreviousScale
プロパティは、スケールファクタを提供します。
angle
,previousAngle
,rotation
プロパティには、2 点間の角度と回転量が指定されます。
point1
,point2
,startPoint1
,startPoint2
プロパティには、タッチ点の位置を指定します。
ジェスチャを処理しない場合は、onPinchStarted
ハンドラでaccepted
プロパティを false に設定できます。
PinchAreaも参照してください 。
プロパティのドキュメント
これらのプロパティは、2つのタッチポイント間の中心点の位置を保持する。
center
は現在の中心点previousCenter
は前のイベントの中心点です。startCenter
はジェスチャー開始時の中心点
これらのプロパティは、2つのタッチポイント間の距離の変化によって決定されるスケールファクターを保持する。
scale
は現在のスケールファクターです。previousScale
は前のイベントのスケールファクタです。
ピンチジェスチャーが開始されると、スケールは1.0
になります。
これらのプロパティは2つのタッチポイント間の角度を保持する。
angle
は2点間の現在の角度で、範囲は-180~180です。previousAngle
は直前のイベントの角度です。rotation
は、ピンチジェスチャーが開始されてからの総回転です。
ピンチジェスチャーが開始されると、回転は0.0
になります。
これらのプロパティは、ピンチを生成する実際のタッチポイントを提供する。
point1
と は点の現在の位置を保持する。point2
startPoint1
と は、2 番目の点がタッチされたときの点の位置を保持します。startPoint2
accepted : bool |
PinchArea::onPinchStarted
ハンドラでこのプロパティを false に設定すると、それ以降ピンチ イベントは生成されず、ジェスチャは無視されます。
pointCount : int |
現在タッチされている点の数を保持します。PinchArea は、2 つのタッチ ポイントがジェスチャを開始するまで反応しませんが、すべてのタッチ ポイントが解放されるまでアクティブなままになります。
© 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.