이 페이지에서

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 을 참조하세요.

ForForeverIterator도 참조하세요 .

멤버 함수 문서

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