摘要: i) Qt的翻译机制入门: 0)以tr("<英文文本>")封装需要翻译的文本,比如:ui->label->setText(tr("Date")); 1)在工程.pro文件中写入: TRANSLATION += <.pro's name>_ZH_CN.ts #这里语言和区域名字一定要严格,否则之后生成 阅读全文
posted @ 2018-09-27 22:25 r0xFED 阅读(771) 评论(0) 推荐(0) 编辑
摘要: i) 资源文件的写法: 假设images文件夹放在工程目录下 <RCC> <qresource> <file>images/data.png</file> <file>images/decision.png</file> <file>images/document.png</file> <file> 阅读全文
posted @ 2018-09-27 22:05 r0xFED 阅读(252) 评论(0) 推荐(0) 编辑