Search code examples
qtqwidgetqmainwindowqlayout

maximized qmainwindow gets bigger then screen


I have QMainWindow with widgets, all the widgets have layout. But, when I play with the maximize and minimize QMainWindow buttons, I get the QMainWindow bigger then the screen size.

Is there any property / flag that disable this issue ?

Thanks.


Solution

  • I found that my widget was not set as CentralWidget of the Qt mainwindow.

    That solved my issue, thanks anyway.