mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-28 03:09:24 +08:00
搭建PVB架构,实现前端的基础布局、菜单、表格、图示等功能
This commit is contained in:
38
src/main.cpp
38
src/main.cpp
@@ -5,17 +5,18 @@
|
||||
#include <QtWebEngineWidgets/QtWebEngineWidgets>
|
||||
#include <filesystem>
|
||||
|
||||
#include "widgets/MainWindow.h"
|
||||
#include "common/Utils.h"
|
||||
#include "app/Application.h"
|
||||
#include "app/Dao.h"
|
||||
|
||||
#include "common/Snowflake.h"
|
||||
#include "protocol/TcpEntity.h"
|
||||
|
||||
#include "common/JsonN.h"
|
||||
|
||||
#include "app/Application.h"
|
||||
#include "app/Config.h"
|
||||
#include "protocol/TcpEntity.h"
|
||||
|
||||
#include "widgets/MainWindow.h"
|
||||
|
||||
#include "pv/PvApp.h"
|
||||
#include "pv/PvUser.h"
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
@@ -69,15 +70,22 @@ int main(int argc, char** argv)
|
||||
Application::instance().init();
|
||||
|
||||
// 运行QT主窗口
|
||||
QApplication qapp(argc, argv);
|
||||
MainWindow mainWin;
|
||||
mainWin.setWindowTitle("风光储能站控制管理系统");
|
||||
mainWin.resize(1920, 1080);
|
||||
mainWin.show();
|
||||
qapp.exec();
|
||||
//QApplication qapp(argc, argv);
|
||||
//MainWindow mainWin;
|
||||
//mainWin.setWindowTitle("风光储能站控制管理系统");
|
||||
//mainWin.resize(1920, 1080);
|
||||
//mainWin.show();
|
||||
//qapp.exec();
|
||||
|
||||
//while (1) {
|
||||
// std::this_thread::sleep_for(std::chrono::seconds(1));
|
||||
//}
|
||||
|
||||
PARAM p;
|
||||
int s;
|
||||
pvInit(argc, argv, &p);
|
||||
/* here you may interpret ac,av and set p->user to your data */
|
||||
while(1)
|
||||
{
|
||||
s = pvAccept(&p);
|
||||
if(s != -1) pvCreateThread(&p,s);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user