在本页

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,parallelIdealThreadCountLimitParallelLimit 元素来代替。

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

如果组的子组也是组,则子组按照自己的执行模式运行任务。

另请参阅 sequential,parallel,parallelIdealThreadCountLimitParallelLimit

© 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.