QMapIterator<QString, int> i(map);while (i.hasNext()) { i.next(); cout << i.key() << ": " << i.value() << endl;}
QMap<QString, int>::const_iterator i = map.constBegin();while (i != map.constEnd()) { cout << i.key() << ": " << i.value() << endl; ++i;}