ftptrans/src/main.cpp
2024-05-09 14:03:54 +08:00

21 lines
402 B
C++

#include "FTPTrans.h"
#include <QtWidgets/QApplication>
int main(int argc, char *argv[])
{
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
QApplication a(argc, argv);
#ifdef _WIN32
QFont font("Microsoft YaHei", 10);
a.setFont(font);
a.setStyle("windows xp");
#endif
FTPTrans w;
w.show();
return a.exec();
}