[Qt-interest] how to iterate multi-dimensional QMap?
franki
franki at franki.eu.org
Wed Aug 11 16:03:41 CEST 2010
Wednesday 11 of August 2010 15:28:45 franki napisał(a):
> Hi all,
>
> I have two dimensional QMap and a QMapIterator
>
> QMap<QString,QMap <QString,QString> > wdata;
> QMapIterator<QString, QMap <QString,QString> > it(wdata);
>
> When I'm trying to compile it, gives me error:
> error: ‘wdata’ is not a type
>
> I'm just looking for a way to iterate through this map.
> I was searching the net, but no luck
Sorry, probably stupid question as I'm still beginer.
I've found a way:
QMap<QString,QMap <QString,QString> > wdata;
QMap<QString,QString> value;
iterate with foreach
foreach (value, wdata) {
...
}
greetings
Marek
>
> please help
> Marek
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list