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 型のネイティブジェスチャーイベントを生成します。

点localPos 、scenePos 、globalPos は、それぞれ、受信ウィジェットまたはアイテム、ウィンドウ、および画面またはデスクトップに対するジェスチャーの位置を指定します。

realValue は macOS のイベントパラメータであり、sequenceId およびintValue は Windows のイベントパラメータです。

注: realValue とintValue を同時に格納することはできません 。どちらか一方がゼロでなければなりません。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 として返します。

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