Document that some types need not to be registered with Q_DECLARE_METATYPE
Change-Id: I2f9b119ebe72595620ec40c2c9b95b0a9defa848 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com> Reviewed-by: Marc Mutz <marc.mutz@kdab.com>bb10
parent
3cf8e426f4
commit
9438da35ab
|
|
@ -131,6 +131,19 @@ struct DefinedTypesFilter {
|
|||
|
||||
\snippet code/src_corelib_kernel_qmetatype.cpp 2
|
||||
|
||||
Some types are registered automatically and do not need this macro:
|
||||
|
||||
\list
|
||||
\li Pointers to classes derived from QObject
|
||||
\li QList<T>, QVector<T>, QQueue<T>, QStack<T>, QSet<T> or QLinkedList<T>
|
||||
where T is a registered meta type
|
||||
\li QHash<T1, T2>, QMap<T1, T2> or QPair<T1, T2> where T1 and T2 are
|
||||
registered meta types
|
||||
\li QPointer<T>, QSharedPointer<T>, QWeakPointer<T>, where T is a class that derives from QObject
|
||||
\li Enumerations registered with Q_ENUM or Q_FLAG
|
||||
\li Classes that have a Q_GADGET macro
|
||||
\endlist
|
||||
|
||||
\sa qRegisterMetaType()
|
||||
*/
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue