QT容器
QString
QString str;
str.sprintf("%s to you!", "Welcome");
qDebug() << str;
str = " Welcome \t to \n you! ";
qDebug() << str;
qDebug() << str.simplified();
str = " Welcome \t to \n you! ";
qDebug() << str.trimmed();
QList
//qt 容器 QList 修改
QList<int> list;
for(int j =0; j < 10; ++j)
{
list.insert(list.end(),j);
}
QList<int>::iterator i;
for(i = list.begin(); i!= list.end(); ++i)
{
qDebug() << (*i);
*i = (*i)*10;
}
QList<int>::const_iterator ci;<