668efc29fd
The T must be derived from QObject, or it will fail to compile. This will allow scripting or other 'wrapping' and runtime environments like QtDeclarative to handle QSharedPointers to types derived from QObject properly. A QSharedPointer<T> can be inserted into a QVariant, and where T derives from QObject, a QSharedPointer<QObject> can be extracted from the QVariant, and its properties are then accessible. Change-Id: I68d6d89aceceb019267bd7301baa2047f9c09b90 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> |
||
---|---|---|
.. | ||
.gitignore | ||
externaltests.cpp | ||
externaltests.h | ||
externaltests.pri | ||
forwarddeclared.cpp | ||
forwarddeclared.h | ||
qsharedpointer.pro | ||
tst_qsharedpointer.cpp | ||
wrapper.cpp | ||
wrapper.h |