Auf dieser Seite

QtTaskTree::ElseIf Class

class QtTaskTree::ElseIf

Ein "else if"-Element, das in bedingten Ausdrücken verwendet wird. Mehr...

Kopfzeile: #include <qconditional.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS TaskTree)
target_link_libraries(mytarget PRIVATE Qt6::TaskTree)
qmake: QT += tasktree
Seit: Qt 6.11

Hinweis: Alle Funktionen in dieser Klasse sind reentrant.

Öffentliche Funktionen

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

Detaillierte Beschreibung

Ein alternatives Bedingungselement der bedingten Ausdrücke. Muss immer vor und nach einem Then Element stehen.

Siehe auch If, Then, und Else.

Dokumentation der Mitgliedsfunktionen

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

Erzeugt ein alternatives Bedingungselement mit condition Aufgabe, das in einem bedingten Ausdruck verwendet werden kann.

Siehe auch 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)

Ein Hilfskonstruktor, der die synchrone handler akzeptiert, die bei der Auswertung der Anfangsbedingung durch die laufende QTaskTree ausgeführt wird.

Es ist eine Abkürzung für:

ElseIf (QSyncTask(handler))

Siehe QSyncTask für weitere Informationen darüber, welche Handler-Typen akzeptabel sind.

Dies ist eine überladene Funktion.

Siehe auch QSyncTask und 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.