QT中如何显示中文

方法一:

在main.cpp文件中添加  

QTextCodec::setCodecForTr(QTextCodec::codecForLocale());

上面那句代码

原文地址:https://www.cnblogs.com/sail/p/2061946.html