#include #include #include "mainwindow.h" #include "./ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) { ui->setupUi(this); m_instructorsAndTraineesWidget = new InstructorsAndTraineesWidget(this); if(! m_instructorsAndTraineesWidget->authorizationCompleted()) { delete m_instructorsAndTraineesWidget; delete ui; throw(std::exception()); } ui->horizontalLayout->addWidget(m_instructorsAndTraineesWidget); this->move(0, 0); this->showNormal(); //this->showMaximized(); } MainWindow::~MainWindow() { delete m_instructorsAndTraineesWidget; delete ui; }