You can also use QMap or std::map.