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);