close img to png

This commit is contained in:
ackimixs
2024-02-01 16:06:45 +01:00
parent 458ff5ebc2
commit d9d6c900d2
3 changed files with 2 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ public:
this->topLayout = new QHBoxLayout;
this->quit = new QPushButton("", this);
this->quit->setIcon(QIcon(":/img/close.svg"));
this->quit->setIcon(QPixmap(":/img/close.png", "PNG"));
this->quit->setStyleSheet("background-color: red; border: none;");
connect(this->quit, &QPushButton::pressed, this, [=]() {

BIN
img/close.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 B

View File

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