[Development] QMetaTypeId and QMetaTypeId2

André Somers andre at familiesomers.nl
Thu Feb 9 14:11:17 CET 2012


Op 9-2-2012 12:39, Stephen Kelly schreef:
>
> > Can I merge QMetaTypeId and QMetaTypeId2?
>
> I always thought they were split so that Qt could add new built-in 
> metatypes without breaking user code.
>
> Eg, if you merge them, any user code doing:
>
> Q_DECLARE_METATYPE(QModelIndex)
>
> will no longer compile until that line is removed (It is a built-in 
> metatype now).
>
>
Not hindered by any knowledge of the internals of these classes:
Would it be possible to make such a statement a no-op then if the type 
is already registered?

André

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120209/ad53cb52/attachment.html>


More information about the Development mailing list