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