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.