char *string = "中文和English混和string!";
QTextCodec* gbk_codec = QTextCodec::codecByName("GBK");
QString gbk_string = codec->toUnicode(string);
QLabel *label = new QLabel(gbk_string);
qt中在label上显示中文汉字
最新推荐文章于 2024-06-13 09:20:52 发布
char *string = "中文和English混和string!";
QTextCodec* gbk_codec = QTextCodec::codecByName("GBK");
QString gbk_string = codec->toUnicode(string);
QLabel *label = new QLabel(gbk_string);