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 &&) | |
| QEnterEvent & | operator=(QEnterEvent &&) |
| QEnterEvent & | operator=(const QEnterEvent &other) |
成员函数文档
QEnterEvent::QEnterEvent(const QPointF &localPos, const QPointF &scenePos, const QPointF &globalPos, const QPointingDevice *device = QPointingDevice::primaryPointingDevice())
构建一个源自device 的 enter 事件对象。
坐标点localPos 、scenePos 和globalPos 分别指定了鼠标光标相对于接收控件或项目、窗口以及屏幕或桌面的位置。
[protected delete] QEnterEvent::QEnterEvent(QEnterEvent &&)
通过移动构造一个QEnterEvent 实例。该函数已被删除。
[protected delete] QEnterEvent &QEnterEvent::operator=(QEnterEvent &&)
将other 以移动赋值的方式赋值给该QEnterEvent 实例。该函数已被删除。
[noexcept protected default] QEnterEvent &QEnterEvent::operator=(const QEnterEvent &other)
将other 复制并赋值给此QEnterEvent 实例。
© 2026 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.