Add background image to InGame

This commit is contained in:
2024-05-09 01:08:43 +02:00
parent 37b522371a
commit 032720ea77
3 changed files with 2 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
InGame::InGame(QWidget *parent) : QWidget(parent) {
this->mainLayout = new QVBoxLayout(this);
this->mainLayout->setAlignment(Qt::AlignCenter);
this->setStyleSheet("background-image: url(:/img/ISEN-Nantes.png); background-repeat: no-repeat; background-position: center; background-color: white;");
this->pts = new QLabel("Points : 0", this);
this->pts->setStyleSheet("font-size: 96px; color: black;");
this->x = new QLabel("X : 0", this);

BIN
img/ISEN-Nantes.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -6,5 +6,6 @@
<file>img/table.jpg</file>
<file>img/close.svg</file>
<file>img/close.png</file>
<file>img/ISEN-Nantes.png</file>
</qresource>
</RCC>