
Originally Posted by
Mobility
Hi guys,
I also tried setting the image to the QLabel in the cpp, but it didn't help either:
myImage.load(":/xxx.png");
QImage image
= myImage.
scaled(love
->width
(), love
->height
(), Qt
::IgnoreAspectRatio );
love
->setPixmap
(QPixmap::fromImage(image
));
love->show();
QLabel *love = new QLabel();
QImage myImage;
myImage.load(":/xxx.png");
QImage image = myImage.scaled(love->width(), love->height(), Qt::IgnoreAspectRatio );
love->setPixmap(QPixmap::fromImage(image));
love->show();
To copy to clipboard, switch view to plain text mode
Bookmarks