数值转换
QString message = QString("My name is %1. I'm %2 years old. my weight is %3 KG.").arg("LiBai").arg(22).arg(60.5);
qDebug()<<message;
输出
My name is LiBai. I'm 22 years old. my weight is 60.5 KG
QString message = QString("My name is %1. I'm %2 years old. my weight is %3 KG.").arg("LiBai").arg(22).arg(60.5);
qDebug()<<message;
输出
My name is LiBai. I'm 22 years old. my weight is 60.5 KG