enable smooth tranformation

This commit is contained in:
Manuel Dewald
2021-03-03 13:10:19 +01:00
parent 6430620335
commit 9ade0cb4ee

View File

@@ -123,7 +123,7 @@ QPixmap MainWindow::getScaledPixmap(const QPixmap& p)
{ {
int w = width(); int w = width();
int h = height(); int h = height();
return p.scaled(w, h, Qt::KeepAspectRatio); return p.scaled(w, h, Qt::KeepAspectRatio, Qt::SmoothTransformation);
} }
void MainWindow::drawBackground(const QPixmap& originalSize, const QPixmap& scaled) void MainWindow::drawBackground(const QPixmap& originalSize, const QPixmap& scaled)