qt_demoe/nettool/main.cpp

28 lines
896 B
C++
Raw Normal View History

2019-09-29 05:13:01 +00:00
#include "frmmain.h"
#include "quiwidget.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
2021-01-22 09:20:01 +00:00
a.setWindowIcon(QIcon(":/main.ico"));
2019-09-29 05:13:01 +00:00
//设置编码以及加载中文翻译文件
QUIHelper::setCode();
2021-01-22 09:20:01 +00:00
QUIHelper::setFont(":/DroidSansFallback.ttf");
2019-09-29 05:13:01 +00:00
QUIHelper::setTranslator(":/qt_zh_CN.qm");
QUIHelper::setTranslator(":/widgets.qm");
QUIHelper::initRand();
App::Intervals << "1" << "10" << "20" << "50" << "100" << "200" << "300" << "500" << "1000" << "1500" << "2000" << "3000" << "5000" << "10000";
App::ConfigFile = QString("%1/%2.ini").arg(QUIHelper::appPath()).arg(QUIHelper::appName());
App::readConfig();
App::readSendData();
App::readDeviceData();
frmMain w;
2021-01-22 09:20:01 +00:00
w.setWindowTitle(QString("网络调试助手V2020 本机IP: %1 QQ: 517216493").arg(QUIHelper::getLocalIP()));
2019-09-29 05:13:01 +00:00
w.show();
return a.exec();
}