QT中foreach的简单使用

QList<QString> list;
list <<"zero"<<"one"<<"two"<<"three"<<"four";
foreach(QString str,list)
qDebug()<<str;

你可能感兴趣的:(list,qt)