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()も参照してください

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