QEnterEvent 类

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())

详细描述

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

成员函数文档编制

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

Constructs an enter event object originating from device .

localPos , scenePos and globalPos specify the mouse cursor's position relative to the receiving widget or item, window, and screen or desktop, respectively.