QStriingList
#include <QCoreApplication> #include<QDebug> #include<QStringList> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QStringList List; QString Line = "a, b, c, d, f, g"; //List.append("Hello"); List = Line.split(","); List.replaceInStrings("b", "goog"); QString After = List.join(","); foreach(QString itm, List) { qDebug() << itm; } qDebug()<<After; return a.exec(); }