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。
构造进入事件对象源自 device .
点 localPos , scenePos and globalPos 分别指定相对于接收 Widget 或项,窗口及屏幕或桌面的鼠标光标点。