QVector registered meta type in Qt 5.0



  • I'm testing a program linking against Qt 5.0 and it looks like QVector<int> is not a registered metatype in this version. That's not an issue but I would like to know what was the first version that came with a pre-registered QVector. I have no idea how to do this though...


  • Qt Champions 2017

    @VRonin do you already know where in Qt this definition is? then you can git blame your way to the commit that introduced the def.

    If you put that hash in the Gerrit search field, you find the corresponding review and have a small arrow 'Included in'. open this and you have all branches containing the commit.



  • Yep, that's what I normally do but I have no idea where native types are registered as metatypes in the Qt sources



  • is QVector preregistered at all ?
    I have to call qRegisterMetaType<QVector<quint16> > all the way up to 5.11 quint16 is not Int, of course and I haven't used QVector<int> in a way that would requiere a registered meta type of it,

    but IIRC QList<quint16> and QList<int> are both preregistered.



  • Looks like QVector<int> is pre-registered in Qt 5.1.1 but not in 5.0.2. I'm not sure what exact version introduced the change though


  • Qt Champions 2017

    @VRonin said in QVector registered meta type in Qt 5.0:

    Looks like QVector<int> is pre-registered in Qt 5.1.1 but not in 5.0.2. I'm not sure what exact version introduced the change though

    You can ask Thiago, he'd probably remember. In any case I thought the core classes were registered from the get go, so this is news to me as well ...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.