Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. [Solved] QHash inside QHash

[Solved] QHash inside QHash

Scheduled Pinned Locked Moved Brainstorm
3 Posts 2 Posters 5.3k Views
  • 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.
  • Y Offline
    Y Offline
    Yash
    wrote on 3 Sept 2010, 07:19 last edited by
    #1

    @QHash < int ,QHash> readDevices;@

    @QVector<QHash> readDevices;@

    Are these statements right?

    [edit: solved / $chetankjain]

    http://kineticwing.com : Web IDE, QSS Editor
    http://speedovation.com : Development Lab

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on 3 Sept 2010, 09:03 last edited by
      #2

      No. You need to use something like this:

      @QHash<int, QHash<QString, QVariant> > someHash;@

      and

      @QVector<QHash<int, QPoint> > someVector;@

      Note the space between the two >. That one is important as some compilers will break without it.

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        Yash
        wrote on 3 Sept 2010, 10:44 last edited by
        #3

        Thank you so much for such a quick answer.

        http://kineticwing.com : Web IDE, QSS Editor
        http://speedovation.com : Development Lab

        1 Reply Last reply
        0

        3/3

        3 Sept 2010, 10:44

        • Login

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