MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow){ ui->setupUi(this); ui->mygroupBox->hide(); layout()->setSizeConstraint(QLayout::SetFixedSize);}
QDesktopWidget *d = QApplication::desktop(); w = d->width(); // returns desktop width h = d->height(); // returns desktop height
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow){ layout()->setSizeConstraint(QLayout::SetFixedSize);}