I am trying to reverse iterate an array of strings. The code below is working perfectly
QStringList aCodes;
aCodes<<"1"<<"2"<<"3"<<"4";
QStringList::iterator its;
for(its = aCodes.end()-1;its != aCodes.begin()-1;--its)
{
qDebug()<<*its;
}
The code below is also working, but its is printing the last three strings only.
for(its = aCodes.end()-1;its != aCodes.begin();--its)
{
qDebug()<<*its;
}