I would like to know how insert into QSet exactly works. Does QSet compare all items with the new item while inserting? Because if it does, i would use QHash with a simple ID as key instead of using QSet with a container class, which has more complex = operator. In that way, would it faster for QHash to compare while inserting. I'm not sure if i'm thinking right.
mySet.insert(proxy); //1. QSet Insertion
myHash.insert(id, proxy); //2. QHash Insertion
Which one would be faster?