Obsolete Members for QHoverEvent

QHoverEvent クラスの以下のメンバーは非推奨となっています。これらは、古いソースコードが引き続き動作するように提供されているものです。新しいコードでの使用は強くお勧めしません。

パブリック関数

(deprecated in 6.3) QHoverEvent(QEvent::Type type, const QPointF &pos, const QPointF &oldPos, Qt::KeyboardModifiers modifiers = Qt::NoModifier, const QPointingDevice *device = QPointingDevice::primaryPointingDevice())
(deprecated in 6.0) QPoint pos() const
(deprecated in 6.0) QPointF posF() const

メンバー関数のドキュメント

[deprecated in 6.3] QHoverEvent::QHoverEvent(QEvent::Type type, const QPointF &pos, const QPointF &oldPos, Qt::KeyboardModifiers modifiers = Qt::NoModifier, const QPointingDevice *device = QPointingDevice::primaryPointingDevice())

この関数はバージョン 6.3 以降、非推奨となっています。新しいコードでの使用は強く推奨しません。

代わりに別のコンストラクタを使用してください(グローバル位置の指定が必須です)。

device を起点とするホバーイベントオブジェクトを生成します。

type パラメータは、QEvent::HoverEnter 、QEvent::HoverLeave 、またはQEvent::HoverMove のいずれかでなければなりません。

pos は、受信ウィジェットに対する現在のマウスカーソルの位置であり、oldPos はその直前の位置です。modifiers には、イベント発生時のすべてのキーボード修飾キーの状態が格納されます。

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

この関数はバージョン 6.0 以降、非推奨となっています。新しいコードでの使用は強く推奨しません。

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

イベントを受け取ったウィジェットを基準とした、マウスカーソルの位置を返します。

QEvent::HoverLeave イベントでは、この位置は常にQPoint(-1, -1) になります。

oldPos()も参照してください 。

[deprecated in 6.0] QPointF QHoverEvent::posF() const

この関数はバージョン 6.0 以降、非推奨となっています。新しいコードでの使用は強くお勧めしません。

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

イベントを受け取ったウィジェットを基準として、マウスカーソルの位置を返します。

QEvent::HoverLeave イベントでは、この位置は常にQPointF(-1, -1) になります。

oldPosF()も参照してください 。

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