Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Usage about QHash or QMap for 2-D array

Usage about QHash or QMap for 2-D array

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.7k Views 1 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.
  • C Offline
    C Offline
    center
    wrote on last edited by
    #1

    https://www.dropbox.com/s/63pv951to7gux1d/qmap.png

    I want mapping this 2d array table to QHash or QMap

    Could you suggest appropriate Example about how can I design above 2-d table to QHash or QMap?

    Thank you

    1 Reply Last reply
    0
    • B Offline
      B Offline
      butterface
      wrote on last edited by
      #2

      Unfortunately I cannot see the picture because dropbox is blocked here.

      However, using QHash or QMap depends on if you need an order or not. Also you have to consider that the key of the QHash needs a global qHash function.
      You can use any type for the value so you can put a QMap into a QMap as well as QPair or something else which defines some kind of table or even a relation.

      Hope this helps a bit.

      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 Extensions
      • Unsolved