在本页

QtTaskTree::ObjectSignal Struct

template <typename Signal> struct QtTaskTree::ObjectSignal

描述QObject 子类及其信号的结构。更多

头文件: #include <qtasktree.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS TaskTree)
target_link_libraries(mytarget PRIVATE Qt6::TaskTree)
qmake: QT += tasktree
Qt 6.11

注意:此结构体中的所有函数都是可重入的

详细说明

作为ObjectSignalGetter 函数的返回值传递给ExecutableItem::withCancel() 或ExecutableItem::withAccept() 。使用makeObjectSignal() 在ObjectSignalGetter 的定义中创建 ObjectSignal。

另请参见 makeObjectSignal()、ExecutableItem::withCancel() 和ExecutableItem::withAccept()。

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