Since your qHash Funktion returns an "uint" copy, i think the hash holds its old adresses. you can test it:

Qt Code:
  1. QHashIterator<QPointer<MyObject>, SomeObject*> i(hash);
  2. while (i.hasNext()) {
  3. i.next();
  4. cout << i.key() << ": " << i.value() << endl;
  5. }
To copy to clipboard, switch view to plain text mode