QtTaskTree::For Class
class QtTaskTree::Forfor 循环的元素。更多...
| 标题: | #include <qtasktree.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS TaskTree) target_link_libraries(mytarget PRIVATE Qt6::TaskTree) |
| qmake: | QT += tasktree |
| 自: | Qt 6.11 |
| 状态: | 技术预览 |
该类处于技术预览阶段,内容可能会有变动。
注意:本类中的所有函数均为可重入函数。
公共函数
相关的非成员
| QtTaskTree::Group | operator>>(const QtTaskTree::For &forItem, const QtTaskTree::Do &doItem) |
成员函数文档
[explicit] For::For(const QtTaskTree::Iterator &iterator)
构建 For 循环元素,其中包含一个iterator 。使用stream insertion operator 与Do 元素,将整个结构放入任务树配方中。
[explicit] For::For(qsizetype count)
构建 For 循环元素,重复执行count 次。
这等同于:
For (RepeatIterator(count))这是一个重载函数。
另请参阅 RepeatIterator 。
[constexpr noexcept default] For::For(QtTaskTree::For &&other)
通过移动构造生成一个For 实例。
相关的非成员
QtTaskTree::Group operator>>(const QtTaskTree::For &forItem, const QtTaskTree::Do &doItem)
将 `forItem ` 与 `doItem ` 主体相结合,并返回一个 `Group `,该对象可直接用于任务树配方中。
© 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.