PDA

View Full Version : QWidget::resize( QSize) destroys GUI



bamdenied
2nd November 2016, 14:47
Hello All,

I have problem based on a resize() call since we have ported our Software from Qt4 to Qt5.
If I call the resize method on my QMainWindow, the windowsize itself updates correctly unfortunetly the content doesn't.
The content remains small and it looks like an overlap. I already tried to call update and repaint functions without success.

Does someone have an idea why this happen?

aamer4yu
2nd November 2016, 14:48
Have you used layouts properly in the mainwindow / central widget ?

Killian
2nd November 2016, 15:05
Is that UI built with Designer or in code?
Best guess would be that your layouts are not set up properly. Also don't call update or repaint manually, they are scheduled after resizeEvent is fired anyway.