[Development] Making TaskTree a public API

Jaroslaw Kobus Jaroslaw.Kobus at qt.io
Mon May 26 15:56:20 CEST 2025


Hi All,

I'd like to start a broader discussion about including TaskTree in Qt and making it a public API.

TaskTree is a solution broadly used in QtCreator in hundreds of places,
for convenient managing of sets of asynchronous tasks of various types,
including running processes, functions in separate threads, network communication, and much more.
The solution is easily extensible in terms of new task types.
It's a matured solution, with a 2.5 years of lifetime already.

TaskTree is already a part of Qt, but used just in one place, and privately so far (qtbase/src/assets/downloader).

The main page for the TaskTree is here: https://wiki.qt.io/TaskTree

According to https://bugreports.qt.io/browse/QTBUG-131142
I stared a work that introduces a new Tasking module in qtbase (qtbase/src/tasking).
The patch is here: https://codereview.qt-project.org/c/qt/qtbase/+/645458

I'm not sure what is the official process of adding new module to qtbase,
thus I'm posting it here, counting for more feedback
and a possible agreement for this new module to be a part of Qt.

I would be very glad for any further comments and opinions on this topic.
All reviews of the mentioned patch are of course very welcome and appreciated.

Thanks in advance and best regards,

Jarek


More information about the Development mailing list