QtTaskTree::Then Class

class QtTaskTree::Then

A "then" element used in conditional expressions. More...

Header: #include <qconditional.h>

Note: All functions in this class are reentrant.

Public Functions

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

Detailed Description

A branch body element of the conditional expressions. Must always be preceeded by If or ElseIf element. May be followed by Else or ElseIf element.

See also If, Else, and ElseIf.

Member Function Documentation

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

Creates a branch body element with children items, to be used in conditional expression. If the preceeding If or ElseIf element finishes with success, the running QTaskTree executes the children, and the result of this execution is the final result of the whole conditional expression.

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

Constructs a 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.