Don't use a QHash to hold a few items
Instead use a vector of struct, this expands to less code, and the overhead of a hash table isn't needed here.
Edited by Ahmad Samir
Instead use a vector of struct, this expands to less code, and the overhead of a hash table isn't needed here.