이 페이지에서

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 (RepeatIterator(5)) >> Do {
    task1,
    task2
}

IteratorDo참조하세요 .

멤버 함수 문서

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

iterator. stream insertion operatorDo 요소를 사용하여 전체 구성을 작업 트리 레시피에 배치합니다.

관련 비회원

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.