摘要: http://zxwmail.blog.163.com/blog/static/1209473842010102984745844/如何解决中文乱码的问题?1、使用setDefaultCodec进行设置;qApp->setDefaultCodec( QTextCodec::codecForName("GBK") ); QLabel *label = new QLabel( tr("中文标签") ); 可惜setDefaultCodec是QT3的函数,QT4已经不支持了。2、 设置QObject的成员函数tr()的编码;QTextCodec::set 阅读全文
posted @ 2011-07-13 16:42 淡茶gis 阅读(428) 评论(0) 推荐(0) 编辑