Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QVector registered meta type in Qt 5.0
Qt 6.12 LTS is out! See what's new in the release blog

QVector registered meta type in Qt 5.0

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 1.3k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • VRoninV Offline
    VRoninV Offline
    VRonin
    wrote on last edited by
    #1

    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...

    "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
    ~Napoleon Bonaparte

    On a crusade to banish setIndexWidget() from the holy land of Qt

    aha_1980A 1 Reply Last reply
    0
    • VRoninV VRonin

      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...

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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.

      Qt has to stay free or it will die.

      1 Reply Last reply
      4
      • VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by
        #3

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

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        0
        • J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          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.


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          1
          • VRoninV Offline
            VRoninV Offline
            VRonin
            wrote on last edited by
            #5

            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

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

            kshegunovK 1 Reply Last reply
            1
            • VRoninV VRonin

              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

              kshegunovK Offline
              kshegunovK Offline
              kshegunov
              Moderators
              wrote on last edited by
              #6

              @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 ...

              Read and abide by the Qt Code of Conduct

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt
              • Unsolved