W3cubDocs

/Qt

QAdoptSharedDataTag Struct

The QAdoptSharedDataTag is a helper tag class. More...

Header: #include <QAdoptSharedDataTag>
CMake: find_package(Qt6 COMPONENTS Core REQUIRED) target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
Since: Qt 6.0

Note: All functions in this struct are thread-safe.

Detailed Description

QAdoptSharedDataTag objects are used in QSharedDataPointer and QExplicitlySharedDataPointer to adopt a pointer to shared data.

See QSharedDataPointer and QExplicitlySharedDataPointer for details.

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qadoptshareddatatag.html