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

# QtTaskTree::Forever Class

class QtTaskTree::Forever

Infinite loop of subtasks. More...

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

- List of all members, including inherited members

Note: All functions in this class are reentrant.

## Detailed Description

The tasks passed to the constructor will repeat until some of them causes the body's workflow policy to stop executing. By default, the body will be repeated until some task finishes with an error.

Refer to Do documentation for more information about placing group handlers and Storage as a direct children of the Forever body.

See also For and ForeverIterator.