このページでは

QtTaskTree::QDefaultTaskAdapter Class

template <typename Task> class QtTaskTree::QDefaultTaskAdapter

QCustomTask で使われるデフォルトのタスクアダプタを提供するクラステンプレート。さらに...

ヘッダ #include <qtasktree.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS TaskTree)
target_link_libraries(mytarget PRIVATE Qt6::TaskTree)
qmake: QT += tasktree
以来:Qt 6.11

注意:このクラスのすべての関数はリエントラントです。

詳しい説明

QDefaultTaskAdapter 適応タスクは、以下の条件を満たす場合に使用できます:

  1. タスクはQObject から派生しています。
  2. タスクは、タスクを開始する public start() メソッドを持ちます。
  3. タスクが終了すると done(QtTaskTree::DoneResult) または done(bool) シグナルを発する。

これらの条件を満たさない場合は、QCustomTask<Task, Adapter> クラス・テンプレートに、タスク・タイプに適合するカスタム・アダプタ・タイプを指定する必要があります。

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