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
Keep a copy of your original pixmap around. Then connect the resized signal to a slot (or override the resizeEvent() function) that implements this :
pixmap
resized
resizeEvent()
lblImage->setPixmap(pixmap.scaled(lblImage->size(), Qt::KeepAspectRatio, Qt::SmoothTransformation));