[Interest] QVector registered meta type in Qt 5.0

Thiago Macieira thiago.macieira at intel.com
Thu Jul 5 16:59:06 CEST 2018


On Thursday, 5 July 2018 00:46:54 PDT Luca Beldi wrote:
> Hi Everyone!
> I'm testing a program linking against Qt 5.0 and it looks like QVector<int>
> is not a registered metatype in this version. I guess this is the reason
> why tst_QIdentityProxyModel::initTestCase actually calls
> qRegisterMetaType<QVector<int> >(). That's not an issue but I would like to
> know what was the first version that came with a pre-registered QVector. 

None. QVector<int> is not a built-in type in any version, even in 5.12.

It may be registered by a number of functions. So the question is: do you call 
them?

> I
> would normally run a git blame but in this case I have no idea where in the
> sources Qt types are pre-registered. 

Nowhere.

> A bit of further investigation led me
> closer, Qt 5.1.1 has QVector<int> pre-registered while Qt 5.0.2 doesn't,
> I'd still like to know what exact patch version introduced the change.

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






More information about the Interest mailing list