Posted By

vorp on 06/02/11


Tagged

Qt


Versions (?)

QStringList loop/iterate


 / Published in: C++
 

  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  

You need to login to post a comment.