The Sort And Operator[] Of QMap

sort The QMap object sorts the elements in it by key rather than the order of insert operation. Let’s see the following example. #include <iostream> #include <QMap> #include <QString> using namespace std; int main() { QMap<QString, int> vars; vars.insert( “ABD”, 1 ); vars.insert( “ABE”, 2 ); QMapIterator<QString, int> it( vars Read more…

A prohibited operation