How to resize QWidgets with QMainWindow
-
Hi everyone I am new with PyQt,
I've been trying to resize all widgets when i click Maximize
And when i click it, size of the widgets don't change.
I read this post. But when set a Layout, i see still the same problem.
-
@hernancrespo89 said in How to resize QWidgets with QMainWindow:
i see still the same problem.
Then you don't set a layout on the main window.
-
@Christian-Ehrlicher
Thanks for reply, i won't set a layout. What should i do? -
@hernancrespo89 said in How to resize QWidgets with QMainWindow:
What should i do?
Set a layout on the mainwindow.
-
Hi,
Just one thing, since it's a QMainWindow, put these widgets in a layout. Set that layout on a "container" widget that you will set as central widget of your QMainWindow.
You can't set a layout on a QMainWindow because it already has one. The one that does all the dock widget, tool bar, menu bar, etc. handling.