Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

allocating memory in Desctructor for deleting QHash values

$
0
0
Hello ! :) is there a QHash method which returns one key or its hashed value (as a reference)? I attempt to delete objects stored as values in a QHash in the Destructor of a class of mine. I only found the method keys() to get all keys of the hash which requires allocating a QList, or don’t I have to allocate a QList? If the keys() method fails due to memory constraints, I can’t destruct my class, (because I don’t get the keys which I need to find the values to delete) or can I ? Or is there an other approach to this kind of destructing? Thank you for your attempt and Best Regards!

Viewing all articles
Browse latest Browse all 18427

Trending Articles