QT4 中文乱码之解决

来源:互联网 发布:点卡寄售平台源码 编辑:程序博客网 时间:2024/05/01 18:24

以下代码在E文XP环境下测试OK

 

QTextCodec *TxtCode = QTextCodec::codecForName ("GBK");

需要引用中文的地方如下:

TxtCode ->toUnicode("中国System Starting...");

 

原创粉丝点击