1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| Prog::Prog()
{
QDesktopWidget desk;
QPalette palette;
QRect screen = desk.screenGeometry();
int x = screen.width();
int y = screen.height() - 100;
this->mainWindow = new QMainWindow();
this->mainWindow->setWindowTitle("Logiciel");
this->mainWindow->setFixedSize(x, y);
palette.setBrush(this->mainWindow->backgroundRole(), QBrush(QImage("IMAGE")));
this->mainWindow->setPalette(palette);
this->window_master = new QWidget();
this->mainWindow->setCentralWidget(this->window_master);
this->window = new QWidget(this->window_master);
//this->window->move((x - 750) / 2, (y - 450) / 2);
this->label_img = new QLabel(this->window);
this->window->setGeometry(750, 450, 740, 440);
} |