Fixed image resize method

This commit is contained in:
Yonghye Kwon
2019-01-11 12:42:14 +09:00
committed by GitHub
parent 19d1b36022
commit d98ea737b3

View File

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