Fixed image resize method
This commit is contained in:
parent
19d1b36022
commit
d98ea737b3
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user