Hi,
I have a main window, I've set a gridlayout on it. I placed some QLabels into the grids where I show images using QLabel::setPixmap(). Thnew images should be shown at some user interactions: pushing buttons, clicking on radiobuttons etc. Now I cannot imagine why but the size of the labels get bigger and bigger on each click. The images are loaded in this way:
ui->label_img->setPixmap(myimg.scaled(ui->label_img->width(),ui->label_img->height(),Qt::KeepAspectRatio));
This is what I would like to solve without setting any size fixed. (window should stay "flexible")
http://youtu.be/YgzcuOXF5RI
Szilvi
Bookmarks