本页内容

QtTaskTree::ExecutionMode Class

class QtTaskTree::ExecutionMode

描述执行模式的组元素。更多...

标题: #include <qtasktree.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS TaskTree)
target_link_libraries(mytarget PRIVATE Qt6::TaskTree)
qmake: QT += tasktree
自: Qt 6.11
继承自: QtTaskTree::GroupItem
继承自:

QtTaskTree::ParallelLimit

状态: 技术预览

该类处于技术预览阶段,内容可能会有变动。

注意:该类中的所有函数均为可重入的。

详细说明

组中的 `execution mode ` 元素指定了该组的直接子任务的启动方式。

为方便起见,您可以改用sequential 、parallel 、parallelIdealThreadCountLimit 或ParallelLimit 元素。

在所有执行模式下,组都会按照任务出现的顺序启动任务。

如果一个组的子节点也是一个组,则该子组将根据其自身的执行模式运行其任务。

另请参阅 sequential 、parallel 、parallelIdealThreadCountLimit 和ParallelLimit 。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.