I already tried several methods on displaying an image on a form, but none of them works how I would like.
I\'ve read many places that the easiest way is to create a la
ui->label->setPixmap( pix.scaled( ui->label->size(), Qt::KeepAspectRatio, Qt::SmoothTransformation) );
Worked like charm for my case (Qt 5.11). pix is a QPixmap object with the original pixel count (e.g. constructed with QPixmap::fromImage(path)).
pix
QPixmap
QPixmap::fromImage(path)