[Development] QMetaTypeId and QMetaTypeId2

Thiago Macieira thiago.macieira at intel.com
Thu Feb 9 16:35:17 CET 2012


On Thursday, 9 de February de 2012 12.39.54, Stephen Kelly wrote:
> I always thought they were split so that Qt could add new built-in metatypes
> without breaking user code.

That's not why it was added.

> Eg, if you merge them, any user code doing:
> 
> Q_DECLARE_METATYPE(QModelIndex)

Most types are not built-ins. They may be added by another library, like 
QtDBus (that Q_DECLARE_METATYPEs a lot of types) and then there's no 
protection.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120209/d9747dab/attachment.sig>


More information about the Development mailing list