<span style="font-size:18px;">#include <QtGui/QApplication> #include "mainwindow.h" #include <QTextCodec> int main(int argc, char *argv[]) { QApplication a(argc, argv); QTextCodec::setCodecForLocale(QTextCodec::codecForName("GB2312")); QTextCodec::setCodecForTr(QTextCodec::codecForName("GB2312")); QTextCodec::setCodecForCStrings(QTextCodec::codecForName("GB2312")); MainWindow w; w.show(); return a.exec();</span>
如何在qt中显示中文
最新推荐文章于 2024-09-14 20:33:28 发布