The QSharedData class is a base class for shared data objects. 更多...
头: | #include <QSharedData> |
qmake: | QT += core |
注意: 此类的所有函数 可重入 .
QSharedData ( const QSharedData & ) | |
QSharedData () |
QSharedData is designed to be used with QSharedDataPointer or QExplicitlySharedDataPointer 以实现自定义 隐式共享 or explicitly shared classes. QSharedData provides thread-safe 引用计数。
见 QSharedDataPointer and QExplicitlySharedDataPointer 了解细节。
Constructs a QSharedData object with reference count 0. The parameter is ignored.
Constructs a QSharedData object with a reference count of 0.