本页内容

QAdoptSharedDataTag Struct

QAdoptSharedDataTag 是一个辅助标签类。更多内容...

头文件: #include <qshareddata.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
自: Qt 6.0

注意:该结构体中的所有函数均是线程安全的。

公共函数

详细说明

QAdoptSharedDataTag 对象在QSharedDataPointer 和QExplicitlySharedDataPointer 中用于采用指向共享数据的指针。

有关详细信息,请参阅QSharedDataPointer 和QExplicitlySharedDataPointer 。

成员函数文档

[explicit constexpr noexcept default] QAdoptSharedDataTag::QAdoptSharedDataTag()

默认——构造一个QAdoptSharedDataTag 实例。

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