QString

数值转换

    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()<

输出

My name is LiBai. I'm 22 years old.  my weight is 60.5 KG

你可能感兴趣的:(Qt,入门实战教程(目录),qt,开发语言)