Posted By


vorp on 06/02/11

Tagged


Statistics


Viewed 683 times
Favorited by 0 user(s)

QStringList loop/iterate


/ Published in: C++
Save to your folder(s)



Copy this code and paste it in your HTML
  1. foreach (QString str, list) { 5
  2. qDebug() << QString(" [%1] ").arg(str);
  3. }
  4.  
  5.  
  6. for (QStringList::iterator it = list.begin();
  7. it != list.end(); ++it) { 6
  8. QString current = *it; 7
  9. qDebug() << "[[" << current << "]]";
  10. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.