QT4 :
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
QT5:
#if defined(_MSC_VER) && (_MSC_VER >= 1600)
#pragma execution_character_set("utf-8")
#endif
详见:http://blog.163.com/qimo601@126/blog/static/1582209320143115334438/
2023-12-17 19:14:28
QT4 :
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
QT5:
#if defined(_MSC_VER) && (_MSC_VER >= 1600)
#pragma execution_character_set("utf-8")
#endif
详见:http://blog.163.com/qimo601@126/blog/static/1582209320143115334438/