이 페이지에서

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 문서를, Forever 본문의 직접 자식으로 Storage 를 배치하는 방법에 대한 자세한 내용은 문서를 참조하십시오.

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.