UID:7394
UID:139371
UID:129638
UID:112856
UID:140149
liuweilhy:MSVC2010默认保存GBK编码。如果不转换成utf-8编码,对GBK编码的文件,中文可以直接用QStringLiteral()宏,如:QMessageBox msgBox;msgBox.setText(QStringLiteral("警告"));不过这样做就不能用tr()翻译了。对于不需要多语言的程序还算是比较方便的解决方法。 (2014-01-25 22:52)
UID:150242
UID:126823
UID:152127
UID:144037
UID:37578
yearl:请问怎么在 qDebug()时正常显示中文呢? 带BOM的UTF-8格式,添加了#pragma execution_character_set("utf-8")qDebug() << QStringLiteral("文本文档");....... (2015-09-14 15:08)
UID:109172
UID:45813
UID:171879
UID:68302
九重水:我一般不在代码中使用非英文。我的习惯是用英文,然后翻译成中文。虽然我的英文很渣。[表情] (2017-02-09 10:33)
UID:185371
UID:190140
UID:201754