6.0.0-rc4Source

QAdoptSharedDataTag Struct

The QAdoptSharedDataTag struct tags a QSharedDataPointer constructor that adopts data. More…

Header#include <QtCore/qshareddata.h>
CMaketarget_link_libraries(app PRIVATE Nt::Core)
ModuleNt Core C++ Classes

List of all members, including inherited members

Public Functions

Detailed Description

Pass a QAdoptSharedDataTag as the first argument to QSharedDataPointer::QSharedDataPointer(QAdoptSharedDataTag, T *) to take over a data pointer without incrementing its reference count.

Differences from Qt

This is an Nt-only type, not part of the public Qt API.

Member Function Documentation

[explicit, constexpr] QAdoptSharedDataTag::QAdoptSharedDataTag()

Constructs a tag.