Hi,
I'm having a little issue
qImage
= qImage.
scaled(QSize(ui.
myLabel->width
(),
1000),Qt
::KeepAspectRatio,Qt
::SmoothTransformation);
qImage = qImage.scaled(QSize(ui.myLabel->width(),1000),Qt::KeepAspectRatio,Qt::SmoothTransformation);
To copy to clipboard, switch view to plain text mode
I want to keep aspect ratio so I set "height" of the scaled image to a big value(bigger that width).
Every time I show an image, the QLabel gains a little width(maybe 1 pixel).
I don't resize the QLabel height because it is autoresized when show the image(fitting to the image width and height).
Thanks,
Bookmarks