Draft: Check the return of QHash::value(key) before using it
If "key" doesn't exist in a QHash hash, then QHash::value(key) will return a default-contructed "value".
Edited by Ahmad Samir
If "key" doesn't exist in a QHash hash, then QHash::value(key) will return a default-contructed "value".