- Extending Qt Creator Manual
- TaskTree
- QTaskInterface
- Extending Qt Creator Manual 19.0.2

# QTaskInterface Class

QTaskInterface is a helper class used when adapting custom task's interface. More...

Header: | `#include <qtasktree.h>`

Note: All functions in this class are reentrant.

## Detailed Description

The custom `Adapter` type of the QCustomTask<`Task`, `Adapter`, `Deleter>` template is expected to have the following form, when adapting Worker task:

     class WorkerTaskAdapter
     {
     public:
         void operator()(Worker *task, QTaskInterface *iface) { ... }
     };

     using WorkerTask = QCustomTask<Worker, WorkerTaskAdapter>;