Jump to content

TaskTree: Difference between revisions

From Qt Wiki
No edit summary
mNo edit summary
Line 19: Line 19:
{| class="wikitable"
{| class="wikitable"
|-
|-
! Content !! Link || Additional Info
! Link || Additional Info
|-
|-
| Introductory Blog || https://www.qt.io/blog/qt-task-tree-coming-soon-in-qt-6.11
| [https://www.qt.io/blog/qt-task-tree-coming-soon-in-qt-6.11 Introductory Blog] ||
|-
|-
| YouTube video || https://www.youtube.com/watch?v=6f_0Se3O_xc || Created by [https://www.linkedin.com/in/lukaszhampf Łukasz Hampf] ([https://somcosoftware.com/en Somco Software])
| [https://www.youtube.com/watch?v=6f_0Se3O_xc YouTube video] || Created by [https://www.linkedin.com/in/lukaszhampf Łukasz Hampf] ([https://somcosoftware.com/en Somco Software])
|-
|-
| Documentation || https://doc-snapshots.qt.io/qt6-dev/qttasktree-index.html || Ref docs: https://doc-snapshots.qt.io/qt6-dev/qttasktree-module.html
| [https://doc-snapshots.qt.io/qt6-dev/qttasktree-index.html Documentation] || Ref docs: [https://doc-snapshots.qt.io/qt6-dev/qttasktree-module.html here]
|-
|-
| Sources || https://code.qt.io/cgit/qt/qttasktree.git/
| [https://code.qt.io/cgit/qt/qttasktree.git/ Sources] ||
|-
|-
| Autotests || https://code.qt.io/cgit/qt/qttasktree.git/tree/tests/auto/tasktree || Includes more than 250 test cases
| [https://code.qt.io/cgit/qt/qttasktree.git/tree/tests/auto/tasktree Autotests] || Includes more than 250 test cases
|-
|-
| Demo || https://doc-snapshots.qt.io/qt6-dev/qttasktree-widgets-demo-example.html || Sources: https://code.qt.io/cgit/qt/qttasktree.git/tree/examples/widgets/demo
| [https://doc-snapshots.qt.io/qt6-dev/qttasktree-widgets-demo-example.html Example: Demo] || Sources: [https://code.qt.io/cgit/qt/qttasktree.git/tree/examples/widgets/demo here]
|-
|-
| DataExchange || [Soon to come...] || An example of a reusable TaskTree recipe
| [https://doc-snapshots.qt.io/qt6-dev/qttasktree-widgets-trafficlight-example.html Example: Traffic Light] || An alternative implementation of https://doc.qt.io/qt-6/qtscxml-trafficlight-widgets-static-example.html using TaskTree
|-
|-
| TrafficLight || https://doc-snapshots.qt.io/qt6-dev/qttasktree-widgets-trafficlight-example.html || An alternative implementation of https://doc.qt.io/qt-6/qtscxml-trafficlight-widgets-static-example.html using TaskTree
| [https://doc-snapshots.qt.io/qt6-dev/qttasktree-widgets-imagescaling-example.html Example: Image Scaling] || An alternative implementation of [https://doc.qt.io/qt-6/qtconcurrent-imagescaling-example.html Image Scaling] using TaskTree
|-
|-
| ImageScaling || https://doc-snapshots.qt.io/qt6-dev/qttasktree-widgets-imagescaling-example.html<nowiki/>|| An alternative implementation of https://doc.qt.io/qt-6/qtconcurrent-imagescaling-example.html using TaskTree
| [https://codereview.qt-project.org/c/qt-creator/qt-creator/+/481573 Image Scalling diff] || Difference in the implementation of the ImageScaling example using QFuture::then() and TaskTree
|-
|-
| ImageScaling diff || https://codereview.qt-project.org/c/qt-creator/qt-creator/+/481573 || Difference in the implementation of the ImageScaling example using QFuture::then() and TaskTree
| [https://codereview.qt-project.org/c/qt/qtbase/+/565933 Asset Downloader diff] || Patch replacing the old implementation of the asset downloader with TaskTree employed (TaskTree used in Qt 6.8 privately)
|-
|-
| AssetDownloader || https://codereview.qt-project.org/c/qt/qtbase/+/565933 || Patch replacing the old implementation of the asset downloader with TaskTree employed (TaskTree used in Qt 6.8 privately)
| [https://qt-project.atlassian.net/issues/?filter=18585 Suggestions] ||
|-
|-
| Suggestions || https://qt-project.atlassian.net/issues/?filter=18585
| [https://qt-wiki-uploads.s3.amazonaws.com/images/5/56/TaskTreePresentation.pdf Presentation 2024] ||
|-
| Presentation '24 || https://qt-wiki-uploads.s3.amazonaws.com/images/5/56/TaskTreePresentation.pdf


|}
|}
[[File:TaskTree.jpg|thumb|The first public TaskTree presentation on Sep 28th 2023 at Felgo office, Vienna.]]
[[File:TaskTree.jpg|thumb|The first public TaskTree presentation on Sep 28th 2023 at Felgo office, Vienna.]]
[[File:Spyrosoft.jpeg|thumb|TaskTree presentation in Technopark Pomerania at the invitation of Spyrosoft on Oct 18th 2023.]]
[[File:Spyrosoft.jpeg|thumb|TaskTree presentation in Technopark Pomerania at the invitation of Spyrosoft on Oct 18th 2023.]]

Revision as of 19:44, 25 February 2026


Qt Task Tree - generic solution for automatic management of asynchronous tasks (C++), by Jarek Kobus

TaskTree automatically manages a chain (or a tree) of asynchronous tasks of mixed types, including running processes, network queries, functions in separate threads, animations, timers, and so on... It's easily extensible with any other types of asynchronous tasks.

The recipe on how to create, run and manage the conglomerate of tasks is described in a declarative way in C++.

The recipes are enclosed in copyable value-type objects and may be run many times, or be part of more general recipes.

The TaskTree is broadly used in QtCreator, for executing Build / Deploy / Run configurations, Locator filter, Clang tool, VCS commands, Autotests, driving Axivion plugin's communication and much more...

The TaskTree will be included in Qt 6.11 as a new QtTaskTree module.

Notes from the presentation/discussion at Qt Contributors Summit 2023: TaskTree CS23

Notes from the presentation/discussion at Qt Contributors Summit 2024: QtCS2024 TaskTree

More Info

Link Additional Info
Introductory Blog
YouTube video Created by Łukasz Hampf (Somco Software)
Documentation Ref docs: here
Sources
Autotests Includes more than 250 test cases
Example: Demo Sources: here
Example: Traffic Light An alternative implementation of https://doc.qt.io/qt-6/qtscxml-trafficlight-widgets-static-example.html using TaskTree
Example: Image Scaling An alternative implementation of Image Scaling using TaskTree
Image Scalling diff Difference in the implementation of the ImageScaling example using QFuture::then() and TaskTree
Asset Downloader diff Patch replacing the old implementation of the asset downloader with TaskTree employed (TaskTree used in Qt 6.8 privately)
Suggestions
Presentation 2024
The first public TaskTree presentation on Sep 28th 2023 at Felgo office, Vienna.
TaskTree presentation in Technopark Pomerania at the invitation of Spyrosoft on Oct 18th 2023.