qt5base-lts/tests/auto/corelib/kernel/qpointer
Stephen Kelly 668efc29fd Add some internal API for extracting a QSharedPointer<T> from QVariant.
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>
2012-06-20 15:45:07 +02:00
..
.gitignore
qpointer.pro Make qpointer autotest build without widgets 2012-06-10 13:43:18 +02:00
tst_qpointer.cpp Add some internal API for extracting a QSharedPointer<T> from QVariant. 2012-06-20 15:45:07 +02:00