이 페이지에서

QtTaskTree::Else Class

class QtTaskTree::Else

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

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

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

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

공개 함수

Else(const QtTaskTree::GroupItems &children)
Else(std::initializer_list<QtTaskTree::GroupItem> children)
Else(QtTaskTree::Else &&other)

상세 설명

조건식의 else 분기의 본문입니다. 반드시 Then 요소 앞에 와야 합니다.

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

멤버 함수 설명

[explicit] Else::Else(const QtTaskTree::GroupItems &children)

children 항목을 포함하는 조건식의 else 분기 본문 요소를 생성합니다. 이전 조건이 오류로 종료되면, 그 앞의 Then 본문은 건너뛰어지고 this 분기가 선택됩니다. 이 경우 실행 중인 QTaskTree 는 children 을 실행하며, 이 실행 결과가 전체 조건식의 최종 결과가 됩니다.

[explicit] Else::Else(std::initializer_list<QtTaskTree::GroupItem> children)

children 로 지정된 std::initializer_list 로부터 else 분기 본문 요소를 생성합니다.

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

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

Else 의 인스턴스를 move 생성합니다.

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