このページでは

QEnterEvent Class

QEnterEvent クラスには、エンターイベントを表すパラメータが含まれています。詳細...

ヘッダー: #include <QEnterEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
継承元: QSinglePointEvent

パブリック関数

QEnterEvent(const QPointF &localPos, const QPointF &scenePos, const QPointF &globalPos, const QPointingDevice *device = QPointingDevice::primaryPointingDevice())

プロテクトされた関数

QEnterEvent(QEnterEvent &&)
QEnterEvent &operator=(QEnterEvent &&)
QEnterEvent &operator=(const QEnterEvent &other)

詳細な説明

Enter イベントは、マウスカーソルがウィンドウまたはウィジェット内に入ったときに発生します。

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

QEnterEvent::QEnterEvent(const QPointF &localPos, const QPointF &scenePos, const QPointF &globalPos, const QPointingDevice *device = QPointingDevice::primaryPointingDevice())

device を起源とする enter イベントオブジェクトを生成します。

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

[protected delete] QEnterEvent::QEnterEvent(QEnterEvent &&)

QEnterEvent のインスタンスをMove-constructで生成します。この関数は削除されています。

[protected delete] QEnterEvent &QEnterEvent::operator=(QEnterEvent &&)

other をこのQEnterEvent インスタンスに割り当てます。この関数は削除されます。

[noexcept protected default] QEnterEvent &QEnterEvent::operator=(const QEnterEvent &other)

other をこのQEnterEvent インスタンスにコピーして割り当てます。

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