#include "MainWindow.h" #include "ui_MainWindow.h" #include "EXProjectView.h" #include #include #include #include #include MainWindow::MainWindow(int projectId, QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); setWindowTitle(""); // int projId = 110; // QList cfgList; // bool ret = UserConfigService().QueryUserConfigListInfoByEngineerId(&cfgList, projId); // if (!ret) { // return; // } proj = new ProjectInfo; int ret = ProjectService().QueryProjectById(proj, projectId); if (!ret) { return; } EXProjectView *projView = new EXProjectView(proj, this); setCentralWidget(projView); } MainWindow::~MainWindow() { delete ui; }