Browse Source

程序启动切换到可执行文件所在目录

pull/4/head
zhangsan 4 years ago
parent
commit
a6a4b26e26
  1. 5
      main.cpp

5
main.cpp

@ -10,6 +10,9 @@ int main(int argc, char *argv[])
{
QApplication a(argc, argv);
//切换当前工作目录
QDir::setCurrent(QCoreApplication::applicationDirPath());
//初始化配置文件
MainConfig::initConfig();
@ -41,7 +44,7 @@ int main(int argc, char *argv[])
QObject::connect(&w,&MainWidget::complexOneKeyStart,&httpService,&HttpService::onComplexOneKeyStart);
w.show();
// w.showFullScreen();
// w.showFullScreen();
return a.exec();
}

Loading…
Cancel
Save