ArkKup
17th February 2014, 18:30
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;
?
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;
?