- Extending Qt Creator Manual
- QtTaskTree
- Then
- Extending Qt Creator Manual 21.0.0-beta1

# QtTaskTree::Then Class

class QtTaskTree::Then

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

Header: | `#include <qconditional.h>`
CMake: | `find_package(Qt6 REQUIRED COMPONENTS TaskTree)` `target_link_libraries(mytarget PRIVATE Qt6::TaskTree)`
qmake: | `QT += tasktree`
Since: | 6.11

Note: All functions in this class are reentrant.

## 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.