QString str;
QString tip = QString::fromLocal8Bit("中国人口总数:");
QString tip2 = QString::fromUtf8(tip.toUtf8().data());
str.sprintf("%s %d",tip2.toUtf8().data(), 14);
textEdit->setPlainText (str);
或:
QString str;
QString tip = QString::fromLocal8Bit("中国人口总数:");
str.sprintf("%s %d", tip.toUtf8().data(), 14);
textEdit->setPlainText (str);
阅读(3711) | 评论(0) | 转发(0) |