If you have a QMap and do if(yourMap[someKey]==someValue) it creates a map item and later on a contains will find it despite the unintentional creation.
I forgot to mention, this violates having const C++ functions too if data members are getting modified.