QAbstractEventDispatcherV2 Class
| 标题: | #include <QAbstractEventDispatcherV2> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
| qmake: | QT += core |
| 继承自: | QAbstractEventDispatcher |
公共函数
| QAbstractEventDispatcherV2(QObject *parent = nullptr) | |
| virtual | ~QAbstractEventDispatcherV2() override |
详细描述
该类是一个临时方案,旨在为 Qt 事件分发器实现向基于std::chrono 的 API 的过渡。在 Qt 7 中,它将与QAbstractEventDispatcher 合并,并将该处的纯虚函数替换为在此处定义的纯虚函数。
建议应用程序和库在未来版本发布之前就迁移到新 API,以便届时能简化相关工作。
成员函数文档
[explicit] QAbstractEventDispatcherV2::QAbstractEventDispatcherV2(QObject *parent = nullptr)
使用给定的parent 创建一个新的事件分发器。
[override virtual noexcept] QAbstractEventDispatcherV2::~QAbstractEventDispatcherV2()
销毁事件分发器。
© 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.