QtTaskTree::Else Class

class QtTaskTree::Else

An "else" element used in conditional expressions. More...

Header: #include <qconditional.h>

Note: All functions in this class are reentrant.

Public Functions

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

Detailed Description

A body of an else branch of the conditional expressions. Must always be preceeded by Then element.

See also If, Then, and ElseIf.

Member Function Documentation

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

Creates an else branch body element of the conditional expressions with children items. If the previous condition finishes with an error, the preceeding Then body is skipped, and this branch is selected. In this case the running QTaskTree executes the children, and the result of this execution is the final result of the whole conditional expression.

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

Constructs an else branch body element from std::initializer_list given by children.

This is an overloaded function.

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