Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Usage about QHash or QMap for 2-D array
center last edited by
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?
butterface last edited by
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.