本页内容

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
状态: 技术预览

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

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

详细说明

用作传递给ExecutableItem::withCancel() 或ExecutableItem::withAccept() 的ObjectSignalGetter 函数的返回值。请在ObjectSignalGetter 的定义中使用makeObjectSignal() 来创建 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.