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

详细描述

This class is a temporary hack to enable transition to an API based on std::chrono for the Qt event dispatcher. In Qt 7, it will be merged with QAbstractEventDispatcher , replacing the pure virtuals there with the ones defined here.

It is recommended applications and libraries port to the new API before that future release to simplify work when the time comes.

成员函数文档编制

[explicit] QAbstractEventDispatcherV2:: QAbstractEventDispatcherV2 ( QObject * parent = nullptr)

构造新事件分派程序采用给定 parent .

[override virtual noexcept] QAbstractEventDispatcherV2:: ~QAbstractEventDispatcherV2 ()

销毁事件分派程序。