[Interest] QMetaProperty::write behavior changed with Qt 5.6 - Bug?

Thiago Macieira thiago.macieira at intel.com
Sat May 7 07:26:37 CEST 2016


On sábado, 7 de maio de 2016 01:36:42 PDT Christian Ehringfeld wrote:
> Yes, you can find it here:
> https://github.com/Professi/metaproperty-write-test
> Test fails under Qt 5.6 and is succesful under Qt 5.5.1.
> When I remove the inheritance between person and entity it also works
> with Qt 5.6.

You're trying to set a property of type QList<QSharedPointer<Person>> with a 
variant containing QList<QSharedPointer<Entity>>. That's not supposed to work 
because lists in C++ do not support covariance nor contravariance.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list