このページでは

QtTaskTree::Then Class

class QtTaskTree::Then

条件式で使用される「then」要素。詳細...

ヘッダー: #include <qconditional.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS TaskTree)
target_link_libraries(mytarget PRIVATE Qt6::TaskTree)
qmake: QT += tasktree
以下のように: Qt 6.11
ステータス: テクノロジープレビュー

このクラスはテクノロジープレビュー段階にあり、変更される可能性があります。

注:このクラスのすべての関数は再入可能です。

パブリック関数

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

詳細な説明

条件式の分岐本体要素。必ずIf またはElseIf 要素が前にある必要があります。Else またはElseIf 要素が続く場合があります。

「 If 」、「Else 」、および「ElseIf 」も参照してください 。

メンバ関数のドキュメント

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

条件式で使用するための、children 個の項目を持つブランチ本体要素を作成します。直前のIf またはElseIf 要素が正常に終了した場合、実行中のQTaskTree はchildren を実行し、この実行結果が条件式全体の最終結果となります。

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

children で指定された `std::initializer_list ` から、ブランチ本体要素を構築します。

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

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

Then のインスタンスを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.