QWidget::resize( QSize) destroys GUI
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?
Re: QWidget::resize( QSize) destroys GUI
Have you used layouts properly in the mainwindow / central widget ?
Re: QWidget::resize( QSize) destroys GUI
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.