QEnterEvent 类

QEnterEvent 类包含进入事件的描述参数。 更多...

头: #include <QEnterEvent>
CMake: find_package(Qt6 COMPONENTS Gui REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Since: Qt 5.0
继承: QSinglePointEvent

公共函数

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

详细描述

进入事件发生,当鼠标光标进入窗口或 Widget。

成员函数文档编制

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

构造进入事件对象源自 device .

localPos , scenePos and globalPos 分别指定相对于接收 Widget 或项,窗口及屏幕或桌面的鼠标光标点。