このページでは

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.