QMultiHash
When Insert a new member, the copied object ( pointer, or real
variable will copied in new)
for example:
here, if you delete k, it will destroy x, while this is unlawful, as the
key() in x is a const pointer, it has protected the object it points to;
but if you set k=0, there will nochange about x; if you modify m's
property like a or b, it cannot change the x; so pointer is pointer,
real variable is real .
Remember That: when pointer is copied, there will no more one pointer
pointing a memory, so you should be cautious about pointer operation,
such as new, delete, reset and so on.