#include
<QApplication>
#include <QMap>
#include <QDebug>
#include <QList>
int main(int argc,char **argv)
{
QApplication app(argc,argv) ;
QList < QMap<QString,QString> > mapList ;
static QList < QMap<char *,char *> > charList ;
QMap<QString,QString> map;
map.insert("BeiJing","123") ;
map.insert("ShangHai","021") ;
map.insert("TianJin","022") ;
map.insert("ChongQing","023") ;
mapList.insert(0,map);
QMap<QString,QString> map1 ;
map1.insert("BeiJing","1232") ;
map1.insert("ShangHai","0231") ;
map1.insert("TianJin","0225") ;
map1.insert("ChongQing","0235") ;
mapList.insert(1,map1);
//QList< QMap<QString,QString> >::Iterator list_I ;
for(int list_I=0; list_I < mapList.size(); ++list_I){
QMap<QString,QString>::const_iterator map_J;
for(map_J=mapList.at(list_I).constBegin(); map_J!=mapList.at(list_I).constEnd(); ++map_J){
qDebug() << map_J.key() << " " << map_J.value() ;
}
}
QMap<char *,char *> charMap ;
charMap.insert("Event","12123");
charMap.insert("Status","True") ;
QMap<char *,char *> charMap1 ;
charMap1.insert("Event","jjj");
charMap1.insert("Status","Faluse") ;
charList.insert(0,charMap);
charList.insert(1,charMap1);
for(int list_I=0; list_I < charList.size(); ++list_I){
QMap<char *,char *>::const_iterator map_J;
for(map_J=charList.at(list_I).constBegin(); map_J!=charList.at(list_I).constEnd(); ++map_J){
qDebug() << map_J.key() << " " << map_J.value() ;
}
}
return app.exec() ;
}