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