I am going to write my problem here because I am slightly lost ...

In design of a MainWindow I have three widgets that lay out horizontally in one splitter. The splitter has no special attributes except setCollapsible(x, false) .
In the third widget (right pos) I have a label that contains a QPixel for displaying a image. That image resizes itself when the user changes the size of the MainWindow (when QWidget::resizeEvent emits its signal).
To find out the final size of the image I check the size of the label (with Expanding attribute in sizePolicy) and, if the image size is major than the new size of the label, apply it to the QPixmap with this (incomplete) code:

Qt Code:
  1. QPixmap pix ;
  2. QSize sizex(imageContainer->size()) ;
  3.  
  4. imageContainer->setPixmap(pix.scaled(sizex,
  5. Qt::KeepAspectRatio, Qt::SmoothTransformation));
To copy to clipboard, switch view to plain text mode 

The problem is when I horizontally resize the window (vertically has no problems) and splitter resize its content. The process has a lot of time to finish. I resize the window and splitter panels take a size that is changing slowly as the size of the label is fitting.
I think that Label's size doesn't fit until the main window doesn't stop changing its size.
I can throw the change of size when the main window stops fitting, but then the process becomes very sudden.
The problem only happens when the window has splitters. When I try the code in a window with one widget, resize works correctly.

Any ideas?