comlink21
10th December 2007, 05:22
please teach me what wrong with the following piece of code,
QMap<QString, QString> xMap;
for( int i = 0; i <100; i++)
{
QString cKey;
cKey = cKey.setNum(i);
xMap[cKey] = cKey;
}
The problem point to 'xMap[cKey] = cKey' line and say
error: no matching function for call to ‘QString::insert(QString&, QString&)
thank for reply...
comlink21..
QMap<QString, QString> xMap;
for( int i = 0; i <100; i++)
{
QString cKey;
cKey = cKey.setNum(i);
xMap[cKey] = cKey;
}
The problem point to 'xMap[cKey] = cKey' line and say
error: no matching function for call to ‘QString::insert(QString&, QString&)
thank for reply...
comlink21..