QtTaskTree::ElseIf Class
class QtTaskTree::ElseIfUm elemento “else if” utilizado em expressões condicionais. Mais...
| Cabeçalho: | #include <qconditional.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS TaskTree) target_link_libraries(mytarget PRIVATE Qt6::TaskTree) |
| qmake: | QT += tasktree |
| Desde: | Qt 6.11 |
| Status: | Pré-visualização tecnológica |
Esta classe está em pré-visualização tecnológica e está sujeita a alterações.
Observação: Todas as funções desta classe são reentrantes.
Funções públicas
| ElseIf(const QtTaskTree::ExecutableItem &condition) | |
| ElseIf(Handler &&handler) | |
| ElseIf(QtTaskTree::ElseIf &&other) |
Descrição detalhada
Um elemento de condição alternativo das expressões condicionais. Deve ser sempre precedido e seguido por um element Then.
Documentação das funções de membro
[explicit] ElseIf::ElseIf(const QtTaskTree::ExecutableItem &condition)
Cria um elemento de condição alternativa com uma taref condition a para ser usado em uma expressão condicional.
Veja também 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)
Um construtor auxiliar que aceita o ` handler ` síncrono a ser executado durante a avaliação da condição inicial pelo ` QTaskTree` em execução.
É um atalho para:
ElseIf (QSyncTask(handler))Consulte QSyncTask para obter mais informações sobre quais tipos de manipuladores são aceitáveis.
Esta é uma função sobrecarregada.
[constexpr noexcept default] ElseIf::ElseIf(QtTaskTree::ElseIf &&other)
Move cria uma instância de ` ElseIf`.
© 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.