I would to have a QPixmap
with the size 50 x 50.
I tried :
QPixmap watermark(QSize(50,50));
watermark.load(":/icoMenu/preparation");
but the QPixmap take the image size.
I tried also :
QPixmap watermark(":/icoMenu/preparation");
watermark.scaled(QSize(50,50), Qt::KeepAspectRatio);
but same result.
You almost made it
QPixmap watermark(":/icoMenu/preparation");
QPixmap newPixmap = watermark.scaled(QSize(50,50), Qt::KeepAspectRatio);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With