このページでは

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.