会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Jiang. Xiang
Machine Learning
博客园
首页
新随笔
新文章
联系
管理
订阅
2012年9月5日
Qt QLabel 显示中文
摘要: 头文件包含:#include <QTextCodec>在QApplication app(argc,argv);之后加:QTextCodec::setCodecForTr(QTextCodec::codecForName("GBK"));显示中文时调用:QObject::tr("中文")例如:QLabel hello(QObject::tr("你好世界"));
阅读全文
posted @ 2012-09-05 21:47 Jiang, X.
阅读(2614)
评论(0)
推荐(0)
编辑
公告