QGraphicsSceneHoverEvent Class

QGraphicsSceneHoverEvent クラスは、グラフィックスビューフレームワークのホバーイベントを提供します。詳細...

ヘッダー #include <QGraphicsSceneHoverEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Widgets)
target_link_libraries(mytarget PRIVATE Qt6::Widgets)
qmake: QT += widgets
継承: QGraphicsSceneEvent

パブリック関数

virtual ~QGraphicsSceneHoverEvent()
QPointF lastPos() const
QPointF lastScenePos() const
QPoint lastScreenPos() const
Qt::KeyboardModifiers modifiers() const
QPointF pos() const
QPointF scenePos() const
QPoint screenPos() const

詳細説明

QGraphicsViewQHoverEvent イベントを受信すると、それを QGraphicsSceneHoverEvent に変換します。このイベントは、ビューに関連付けられているQGraphicsScene に転送されます。

QGraphicsSceneMouseEvent,QGraphicsSceneContextMenuEvent,QGraphicsSceneWheelEvent, およびQHoverEventも参照してください

メンバ関数ドキュメント

[virtual noexcept] QGraphicsSceneHoverEvent::~QGraphicsSceneHoverEvent()

イベントを破壊する。

QPointF QGraphicsSceneHoverEvent::lastPos() const

最後に記録されたマウスカーソルの位置をアイテム座標で返す。

lastScenePos(),lastScreenPos(),pos()も参照

QPointF QGraphicsSceneHoverEvent::lastScenePos() const

最後に記録された、シーン座標でのイベントマウスカーソル位置を作成した、ビューによって受信された前のマウスまたはホバーイベントのシーン座標を返す。

lastPos(),lastScreenPos(),scenePos()も参照

QPoint QGraphicsSceneHoverEvent::lastScreenPos() const

最後に記録されたマウスカーソルの位置をスクリーン座標で返します。最後に記録された位置は、イベントを作成したビューによって受信された前のマウスイベントまたはホバーイベントの位置です。

lastPos(),lastScenePos(),screenPos()も参照

Qt::KeyboardModifiers QGraphicsSceneHoverEvent::modifiers() const

ホバーイベントが送られた瞬間のキーボード修飾子を返します。

QPointF QGraphicsSceneHoverEvent::pos() const

ホバーイベントが送られた瞬間のマウスカーソルの位置をアイテム座標で返します。

scenePos() およびscreenPos()も参照してください

QPointF QGraphicsSceneHoverEvent::scenePos() const

ホバーイベントが送られた瞬間のマウスカーソルの位置をシーン座標で返す。

pos() およびscreenPos()も参照してください

QPoint QGraphicsSceneHoverEvent::screenPos() const

ホバーイベントが送られた瞬間のマウスカーソルの位置をスクリーン座標で返す。

pos() およびscenePos()も参照

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