Qhash

QHash is a Qt template class that provides a hash-table-based dictionary

Qmap

QMap is a Qt container class that implements a map a.k.a



Values lookups faster

Example

"Qhash is faster but qmap values are sorted by key if you iterate through them"

from question  

Qt Data Type Choice

"Qhash provides faster lookups than qmap"

from question  

* (no title is found for this review)

Others

Example

Also with the method of using qpair from the other answer this has the particular advantage that you can access elements by rows easily if it matters for your use case you could use different container for different dimensions like if you need one dimension to be sorted use qmap which is sorted by key for that and qhash which is more efficient for the dimension which doesn t need sorting

from question  

How to create three dimensional array with QHash?

Back to Home
Data comes from Stack Exchange with CC-BY-SA-4.0