#include "MainWindow.h" #include "ui_MainWindow.h" #include "EXProjectView.h" #include #include #include #include #include MainWindow::MainWindow(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; } ProjectInfo *proj = new ProjectInfo(); ret = ProjectService().QueryProjectById(proj, 110); if (!ret) { return; } for (UserConfig *cfg : cfgList) { qDebug() << __FUNCTION__ << __LINE__ << cfg->userId << cfg->userName << endl; } EXProjectView *projView = new EXProjectView(proj, this); setCentralWidget(projView); } MainWindow::~MainWindow() { delete ui; }