このページでは

QtTaskTree::Forever Class

class QtTaskTree::Forever

サブタスクの無限ループ。さらに...

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

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

パブリック関数

Forever(const QtTaskTree::GroupItems &children)
Forever(std::initializer_list<QtTaskTree::GroupItem> children)

詳細説明

コンストラクタに渡されたタスクは、そのうちのいくつかがボディのワークフローポリシーの実行を停止させるまで繰り返される。デフォルトでは、いくつかのタスクがエラーで終了するまで本体は繰り返される。

フォーエバー・ボディの直接の子としてグループ・ハンドラやStorage を配置することについての詳細はDo のドキュメントを参照のこと。

For およびForeverIteratorも参照の こと。

メンバ関数のドキュメント

[explicit] Forever::Forever(const QtTaskTree::GroupItems &children)

children を実行する無限ループを構築する。

次の構文:

const Group recipe = Forever {
    task1,
    task2
};

と等価である:

const Group recipe = For (ForeverIterator()) >> Do {
    task1,
    task2
};

[explicit] Forever::Forever(std::initializer_list<QtTaskTree::GroupItem> children)

イニシャライザー・リストとして渡されたchildren を実行する無限ループを構築する。

これはオーバーロードされた関数です。

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