1. QString字符串格式化方法如下
QString i = "iTest"; // current file‘s number QString total = "totalTest"; // number of files to process QString fileName = "fileNameTest"; // current file‘s name QString status = QString("Processing file %1 of %2: %3") .arg(i).arg(total).arg(fileName); style="background-color: #ffffff;"> qDebug() << status ;</span>
时间: 2024-11-06 23:28:24