Hi,

I need to create QHash where key will be int and value will be structure but I'm just not sure which way is better to either to keep a pointer to the structure

QHash<int, MyStruct*> myHash;

or keep the structures by value

QHash<int, MyStruct> myHash;

?