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.