In questa pagina

QtTaskTree::ElseIf Class

class QtTaskTree::ElseIf

Un elemento "else if" utilizzato nelle espressioni condizionali. Per saperne di più...

Intestazione: #include <qconditional.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS TaskTree)
target_link_libraries(mytarget PRIVATE Qt6::TaskTree)
qmake: QT += tasktree
A partire da: Qt 6.11
Stato: Anteprima tecnologica

Questa classe è in anteprima tecnologica ed è soggetta a modifiche.

Nota: Tutte le funzioni di questa classe sono rientranti.

Funzioni pubbliche

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

Descrizione dettagliata

Elemento di condizione alternativa delle espressioni condizionali. Deve sempre essere preceduto e seguito da un element Then.

Vedi anche If, Then e Else.

Documentazione delle funzioni membro

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

Crea un elemento di condizione alternativo con un'attività “ condition ” da utilizzare in un'espressione condizionale.

Vedi anche 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)

Un costruttore ausiliario che accetta l'handler a sincrona da eseguire durante la valutazione della condizione iniziale da parte dell'QTaskTree a in esecuzione.

È una scorciatoia per:

ElseIf (QSyncTask(handler))

Vedere ` QSyncTask ` per ulteriori informazioni sui tipi di gestori accettabili.

Si tratta di una funzione sovraccaricata.

Vedi anche QSyncTask e If.

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

Crea un'istanza di ` ElseIf` tramite il costrutto `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.