摘要: 《精通Qt4编程》一书2.2节一段代码如下:int main(int argc, char *argv[]){ QApplication a(argc, argv); QTextCodec::setCodecForTr(QTextCodec::codecForName("gb18030")); QTranslator translator; { ........ } .....}这是一个登录框程序的一部分,编译无报错,运行时Qt creator的Application output中显示一行乱码,对话框也是乱码。于是google发现网上有详细说明,总结起来就是,在QT中默认 阅读全文
posted @ 2011-05-14 21:21 风抚弦 阅读(925) 评论(0) 推荐(0) 编辑