QT中foreach的简单使用时间:2022-07-25 19:42:23QList<QString> list; list <<"zero"<<"one"<<"two"<<"three"<<"four"; foreach(QString str,list) qDebug()<<str;