[Development] [Interest] qRegisterMetaType<QList<QSslError> > and type flags

Thiago Macieira thiago.macieira at intel.com
Wed Jan 2 17:15:11 CET 2013


On quarta-feira, 2 de janeiro de 2013 16.43.27, Jan Kundrát wrote:
> QMetaType::registerType: Binary compatibility break -- Type flags for type
> 'QList<QSslError>' [1062] don't match. Previously registered
> TypeFlags(0x7), now registering TypeFlags(0x107).

The difference is 0x100, which is 
        WasDeclaredAsMetaType = 0x100

Which is turned on if this hidden parameter of qRegisterNormalizedMetaType is 
true:

typename QtPrivate::MetaTypeDefinedHelper<T, QMetaTypeId2<T>::Defined && 
!QMetaTypeId2<T>::IsBuiltIn>::DefinedType defined = 
QtPrivate::MetaTypeDefinedHelper<T, QMetaTypeId2<T>::Defined && 
!QMetaTypeId2<T>::IsBuiltIn>::Defined

I have no clue whether the fault is in the template magic expression or 
whether the type was originally registered without being declared as a 
metatype.

And even if it is the latter case, is it a problem?

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- 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/20130102/f1feb937/attachment.sig>


More information about the Development mailing list