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) |
詳細な説明
コンストラクタに渡されたタスクは、そのうちのいずれかが本体のワークフロー ポリシーの実行を停止させるまで繰り返されます。デフォルトでは、いずれかのタスクがエラーで終了するまで、本体は繰り返されます。
グループハンドラの配置に関する詳細については、Do のドキュメントを参照してください。また、Storage を Forever ボディの直接の子として配置する方法については、 のドキュメントを参照してください。
「 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.