QEnterEvent Class
QEnterEvent 类包含描述输入事件的参数。更多
头文件: | #include <QEnterEvent> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
继承: | QSinglePointEvent |
- 所有成员(包括继承成员)的列表
- 已废弃成员
- QEnterEvent 属于事件类。
公共函数
QEnterEvent(const QPointF &localPos, const QPointF &scenePos, const QPointF &globalPos, const QPointingDevice *device = QPointingDevice::primaryPointingDevice()) |
成员函数文档
QEnterEvent::QEnterEvent(const QPointF &localPos, const QPointF &scenePos, const QPointF &globalPos, const QPointingDevice *device = QPointingDevice::primaryPointingDevice())
构造一个源于device 的输入事件对象。
点localPos 、scenePos 和globalPos 分别指定鼠标指针相对于接收部件或项目、窗口以及屏幕或桌面的位置。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.