QtTaskTree::For Class
class QtTaskTree::ForA for loop element. More...
| Header: | #include <qtasktree.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS TaskTree)target_link_libraries(mytarget PRIVATE Qt6::TaskTree) |
| qmake: | QT += tasktree |
| Since: | Qt 6.11 |
| Status: | Technical Preview |
Note: All functions in this class are reentrant.
Public Functions
| For(const QtTaskTree::Iterator &iterator) |
Detailed Description
A for element, holding an iterator, enabling loop constructs like:
For (RepeatIterator(5)) >> Do { task1, task2 }
Member Function Documentation
[explicit] For::For(const QtTaskTree::Iterator &iterator)
Constructs the For loop element, holding an iterator. Use the stream insertion operator with Do element to place the whole construct in a task tree recipe.