- Extending Qt Creator Manual
- TaskTree
- QSingleTaskTreeRunner
- Extending Qt Creator Manual 19.0.2

# QSingleTaskTreeRunner Class

A single task tree execution controller. More...

Header: | `#include <qtasktreerunner.h>`
Inherits: | QAbstractTaskTreeRunner

- List of all members, including inherited members

## Public Functions

void | start(const QtTaskTree::Group &recipe, SetupHandler &&setupHandler = {}, DoneHandler &&doneHandler = {}, QtTaskTree::CallDoneFlags callDone)

## Detailed Description

Manages single task tree execution. Use the start() method to execute a given recipe, resetting any possibly running task tree. It's guaranteed that at most one task tree is executing at any given time.

## Member Function Documentation

### template <typename SetupHandler = QAbstractTaskTreeRunner::TreeSetupHandler, typename DoneHandler = QAbstractTaskTreeRunner::TreeDoneHandler> void QSingleTaskTreeRunner::start(const QtTaskTree::Group &recipe, SetupHandler &&setupHandler = {}, DoneHandler &&doneHandler = {}, QtTaskTree::CallDoneFlags callDone)

Starts the recipe unconditionally, resetting any possibly running task tree. Calls setupHandler when new task tree is about to be started. Calls doneHandler when the task tree is finished. The doneHandler is called according to the passed callDone.