このページでは

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 分岐の本体。常にThen 要素が前になければならない。

IfThenElseIfも参照

メンバ関数ドキュメント

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

children 項目を持つ条件式の else 分岐ボディ要素を作成する。前の条件がエラーで終了した場合、その前のThen 本体はスキップされ、this 分岐が選択される。この場合、実行中のQTaskTreechildren を実行し、この実行結果が条件式全体の最終結果となる。

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

children で与えられたstd::initializer_list から else 分岐ボディ要素を構築する。

これはオーバーロードされた関数である。

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