How to handle the resize event of mainwindow

Seems like you want to use standard Qt size policy stuff to set the horizontal policy to be expanding.

https://doc.qt.io/qt-5/qsizepolicy.html#Policy-enum

1 Like