Obsolete Members for QNativeGestureEvent

クラスQNativeGestureEvent の以下のメンバーは非推奨です。これらは古いソース・コードの動作を維持するために提供されています。新しいコードでは使用しないことを強くお勧めします。

パブリック関数

(deprecated in 6.2) QNativeGestureEvent(Qt::NativeGestureType type, const QPointingDevice *device, const QPointF &localPos, const QPointF &scenePos, const QPointF &globalPos, qreal realValue, quint64 sequenceId, quint64 intValue)
(deprecated in 6.0) const QPoint globalPos() const
(deprecated in 6.0) QPointF localPos() const
(deprecated in 6.0) const QPoint pos() const
(deprecated in 6.0) QPointF screenPos() const
(deprecated in 6.0) QPointF windowPos() const

メンバ関数ドキュメント

[deprecated in 6.2] QNativeGestureEvent::QNativeGestureEvent(Qt::NativeGestureType type, const QPointingDevice *device, const QPointF &localPos, const QPointF &scenePos, const QPointF &globalPos, qreal realValue, quint64 sequenceId, quint64 intValue)

この関数は6.2から非推奨となった。新しいコードでは使用しないことを強くお勧めします。

intValue はもはや別個に保存されないので、他のコンストラクタを使用してください。

device を起点とするtype タイプのネイティブ ジェスチャ イベントを構築します。

ポイントlocalPosscenePosglobalPos は、それぞれ受信ウィジェットまたはアイテム、ウィンドウ、画面またはデスクトップに対するジェスチャ位置を指定します。

realValue は macOS イベント・パラメータ、 と は Windows イベント・パラメータです。sequenceId intValue

注: realValueとintValue を同時に格納することはできません。どちらか一方が0でなければなりません。realValue == 0 かつintValue!= 0 の場合、同じ変数に格納され、value() はintValue として与えられた値を返す。

[deprecated in 6.0] const QPoint QNativeGestureEvent::globalPos() const

この関数は6.0から非推奨となった。新しいコードでは使用しないことを強くお勧めします。

代わりにglobalPosition().toPoint() を使用してください。

ジェスチャーの位置をスクリーン座標でQPointF として返します。

[deprecated in 6.0] QPointF QNativeGestureEvent::localPos() const

この関数は6.0から非推奨となった。新しいコードでは使用しないことを強く推奨する。

代わりにposition() を使用してください。

イベントを受信したウィジェットまたはアイテムからの相対的なジェスチャの位置をQPointF として返します。

[deprecated in 6.0] const QPoint QNativeGestureEvent::pos() const

この関数は6.0から非推奨となった。新しいコードでは使用しないことを強くお勧めします。

代わりにposition().toPoint() を使用してください。

イベントを受け取ったウィジェットまたはアイテムからの相対的なマウスカーソルの位置を返します。

[deprecated in 6.0] QPointF QNativeGestureEvent::screenPos() const

この関数は6.0から非推奨となった。新しいコードでは使用しないことを強く推奨する。

代わりにglobalPosition() を使用してください。

ジェスチャーの位置をスクリーン座標でQPointF として返します。

[deprecated in 6.0] QPointF QNativeGestureEvent::windowPos() const

この関数は6.0から非推奨となった。新しいコードでは使用しないことを強く推奨する。

代わりにscenePosition() を使用してください。

イベントを受信したウィンドウからの相対的なジェスチャの位置をQPointF として返します。

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