QtTaskTree::Else Class
class QtTaskTree::Else조건 표현식에 사용되는 "else" 요소입니다. 더 보기...
| Header: | #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) |
상세 설명
조건 표현식의 다른 분기의 본문입니다. 항상 Then 요소가 앞에 와야 합니다.
멤버 함수 문서
[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 에서 다른 분기 본문 요소를 생성합니다.
이것은 오버로드된 함수입니다.
© 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.