Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    QRegisterMetaType for vectors of custom Datatype

    General and Desktop
    2
    2
    2140
    Loading More Posts
    • 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.
    • S
      sruthihsr last edited by

      Hi
      I tried the following to access Data over QtDbus
      @
      qRegisterMetaType<StructA>("StructA");
      qRegisterMetaType<std::vector <StructA> >("std::vector <StructA>");
      @
      I get the following error
      ‘QMetaTypeId<std::vector<StructA, std::allocator<StructA> > >’

      Please help me on how to register Std Vector of Custom Datatype

      1 Reply Last reply Reply Quote 0
      • C
        Chris H last edited by

        At what point are you getting an error? When you compile, or during the run? And is that actually the full error text? Your example compiles and runs fine for me (though I haven't tried actually using the type).

        1 Reply Last reply Reply Quote 0
        • First post
          Last post