From d98ea737b3fef2303ac62d0359bc276e7355e0c7 Mon Sep 17 00:00:00 2001 From: Yonghye Kwon Date: Fri, 11 Jan 2019 12:42:14 +0900 Subject: [PATCH] Fixed image resize method --- label_img.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/label_img.cpp b/label_img.cpp index 6aa6fb2..52918ce 100644 --- a/label_img.cpp +++ b/label_img.cpp @@ -145,7 +145,7 @@ void label_img::showImage() { if(m_inputImg.isNull()) return; - QImage imageOnUi = m_inputImg.scaled(this->width(), this->height()); + QImage imageOnUi = m_inputImg.scaled(this->width(), this->height(),Qt::IgnoreAspectRatio,Qt::SmoothTransformation); QPainter painter(&imageOnUi);