QtTaskTree::QThreadFunctionBase Class
class QtTaskTree::QThreadFunctionBaseQThreadFunction 类模板的基类。更多内容...
| 头文件: | #include <qthreadfunctiontask.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS TaskTree) target_link_libraries(mytarget PRIVATE Qt6::TaskTree) |
| qmake: | QT += tasktree |
| 自: | Qt 6.11 |
| 由以下版本继承: | |
| 状态: | 技术预览 |
该类处于技术预览阶段,内容可能会有变动。
注意:该类中的所有函数均为可重入的。
静态公共成员
| void | syncAll() |
成员函数文档
[static] void QThreadFunctionBase::syncAll()
应在应用程序退出时调用此方法,以同步通过 `QThreadFunction` 启动的所有可能仍在运行的函数的终结过程。该调用必须在主线程中执行。
© 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.