I have a QHash<QString,QString>
.
I use the following expression to check whether a value is there in the QHash::keys()
or not.
//programme
QHash<QString,QString> samplehash;
QString value = "somevalue";
if(samplehash.contains(value)) // Condition - 1
{
//some code
}
Sometimes the above conditions matches, sometimes not for the same letters of different case. Is the QHash::contains
method case-sensitive?