このページでは

QtTaskTree::ElseIf Class

class QtTaskTree::ElseIf

条件式で使われる「else if」要素。詳細...

ヘッダ #include <qconditional.h>
CMakeの find_package(Qt6 REQUIRED COMPONENTS TaskTree)
target_link_libraries(mytarget PRIVATE Qt6::TaskTree)
qmake: QT += tasktree
以来:Qt 6.11

注意:このクラスの関数はすべてリエントラントです。

パブリック関数

ElseIf(const QtTaskTree::ExecutableItem &condition)
ElseIf(Handler &&handler)

詳しい説明

条件式の代替条件要素。常にThen 要素の前後になければならない。

IfThenElseも参照のこと

メンバ関数ドキュメント

[explicit] ElseIf::ElseIf(const QtTaskTree::ExecutableItem &condition)

条件式で使われるcondition タスクを持つ代替条件要素を作成する。

Ifも参照

[explicit] template <typename Handler, std::enable_if_t<!std::is_base_of_v<ExecutableItem, std::decay_t<Handler>>, bool> = true> ElseIf::ElseIf(Handler &&handler)

実行中のQTaskTree で初期条件を評価するときに実行される同期handler を受け付けるヘルパーコンストラクタです。

のショートカットである:

ElseIf (QSyncTask(handler))

どのようなハンドラ型が受け入れられるかについての詳細はQSyncTask を参照。

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

QSyncTask およびIfも参照して ください。

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