QHash is a Qt template class that provides a hash-table-based dictionary
QHash provides very similar functionality to QMap. The differences are:
- QHash provides faster lookups than QMap.
- When iterating over a QMap, the items are always sorted by key. With QHash, the items are arbitrarily ordered.
- The key type of a QMap must provide operator<(). The key type of a QHash must provide operator==() and a global hash function called qHash() (see qHash).
Documentation can be found here for Qt 4.8 and here for Qt 5.