Qt - Associative arrays

1k views Asked by At

Is possible to create an associative array (hash or named arrays) in Qt?

Something like:

int array[2];

array["text1"] = 10;
array["text2"] = 20;
1

There are 1 answers

0
Антон Сергунов On BEST ANSWER
QHash<QString, int>

Or if you need lower or upper bounds

QMap<QString, int>