#include "mymainwindow.h"
#include <QApplication>
#include <QTextCodec>
int main(int argc, char *argv[])
{
//增加全局支持 Uicode 识别支持,解决中文乱码问题
QTextCodec *code = QTextCodec::codecForName("UTF-8");
QTextCodec::setCodecForLocale(code);
QApplication a(argc, argv);
MyMainWindow w;
w.show();
return a.exec();
}
Last modification:May 25th, 2020 at 12:33 pm
© The copyright belongs to the author