解决方法:
头文件添加 #include <QTextCodec>
char *arry ="单字字符";
QTextCodec *tc = QTextCodec::codecForName("GBK");
QString tmpQStr = tc->toUnicode(arry);
解决方法:
头文件添加 #include <QTextCodec>
char *arry ="单字字符";
QTextCodec *tc = QTextCodec::codecForName("GBK");
QString tmpQStr = tc->toUnicode(arry);