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()

销毁事件派发器。

© 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.