0
votes

I would like to know how to allow the user to resize the window after calling QMainWindow.setFixedSize ? For example, he click a button, that execute a function that re-enable the window resizement. I checked on the internet, but I didn't found anything... I tried QMainWindow.setSizePolicy(QSizePolicy.Maximum,QSizePolicy.Minimum), but that didn't work... Any idea ?

Thank you !

1

1 Answers

0
votes

From the setFixedSize() documentation:

To remove constraints, set the size to QWIDGETSIZE_MAX.

So, the solution is to do the following:

self.setFixedSize(16777215,16777215)