このページでは

QtTaskTree::For Class

class QtTaskTree::For

forループの要素。さらに...

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

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

パブリック関数

For(const QtTaskTree::Iterator &iterator)
QtTaskTree::Group operator>>(const QtTaskTree::For &forItem, const QtTaskTree::Do &doItem)

詳細説明

イテレータを保持する for 要素:

For (RepeatIterator(5)) >> Do {
    task1,
    task2
}

Iterator およびDoも参照

メンバ関数ドキュメント

[explicit] For::For(const QtTaskTree::Iterator &iterator)

iterator を保持する For ループ要素を構築します。Do 要素を持つstream insertion operator を使用して、タスクツリーレシピに全体の構築物を配置します。

関連する非メンバー

QtTaskTree::Group operator>>(const QtTaskTree::For &forItem, const QtTaskTree::Do &doItem)

forItemdoItem 本体と結合し、タスクツリーのレシピで使えるようにGroup を返す。

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