enable smooth tranformation
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user