이 페이지에서

QtTaskTree::ElseIf Class

class QtTaskTree::ElseIf

조건식에서 사용되는 “else if” 요소. 더 보기...

헤더: #include <qconditional.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS TaskTree)
target_link_libraries(mytarget PRIVATE Qt6::TaskTree)
qmake: QT += tasktree
다음부터: Qt 6.11부터
상태: 기술 미리보기

이 클래스는 기술 미리보기 단계에 있으며 변경될 수 있습니다.

참고: 이 클래스의 모든 함수는 재진입 가능합니다.

공개 함수

ElseIf(const QtTaskTree::ExecutableItem &condition)
ElseIf(Handler &&handler)
ElseIf(QtTaskTree::ElseIf &&other)

상세 설명

조건식에서 대체 조건 요소입니다. 반드시 Then 요소의 앞뒤에 위치해야 합니다.

If, Then 및 Else도 참조하십시오 .

멤버 함수 설명

[explicit] ElseIf::ElseIf(const QtTaskTree::ExecutableItem &condition)

조건식에서 사용할 ‘ condition ’ 작업이 포함된 대체 조건 요소를 생성합니다.

If도 참조하십시오 .

[explicit] template <typename Handler, std::enable_if_t<!std::is_base_of_v<ExecutableItem, std::decay_t<Handler>>, bool> = true> ElseIf::ElseIf(Handler &&handler)

실행 중인 ` QTaskTree`가 초기 조건을 평가할 때 실행될 동기식 ` handler `를 인수로 받는 헬퍼 생성자입니다.

다음과 같은 구문을 간소화한 것입니다:

ElseIf (QSyncTask(handler))

허용되는 핸들러 유형에 대한 자세한 내용은 ` QSyncTask `을 참조하십시오.

이 함수는 오버로드된 함수입니다.

QSyncTask 및 If도 참조하십시오 .

[constexpr noexcept default] ElseIf::ElseIf(QtTaskTree::ElseIf &&other)

ElseIf 의 인스턴스를 이동 생성합니다.

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