22 lines
604 B
C++
22 lines
604 B
C++
#include <QApplication>
|
|
#include "src/sui.h"
|
|
#include <QTranslator>
|
|
#include "src/xsteam_base_ex.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
qputenv("QT_QPA_PLATFORM","windows:fontengine=freetype");
|
|
QApplication a(argc, argv);
|
|
QTranslator qtBaseTranslator;
|
|
if (!qtBaseTranslator.load(QStringLiteral(":/res/translator/qtbase_zh_CN.qm")))
|
|
{
|
|
// 处理加载翻译文件失败的情况
|
|
qDebug() << "Failed to load translation file.";
|
|
return -1;
|
|
}
|
|
a.installTranslator(&qtBaseTranslator);
|
|
sui x;
|
|
x.show();
|
|
return a.exec();
|
|
}
|