Hi to all, I have iterated a QMap, but after this, I have to iterate it again, the problem is, I do not know after the first iteration, the iterator is at end of the QMap, or it locaetes itself at the first again automatically??
Thanks in advance!
Printable View
Hi to all, I have iterated a QMap, but after this, I have to iterate it again, the problem is, I do not know after the first iteration, the iterator is at end of the QMap, or it locaetes itself at the first again automatically??
Thanks in advance!
Hi,
Simply call "begin()" and get the new iterator that points to the start of the map.
thanks, but something wrong it seems.
and after the first iteration :
Code:
tabIter = tabs.begin();
But the compiler find some error
use this method QMapIterator::toFront if you use java-style iterators.