Issue
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 !
Solution
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)
Answered By - musicamante
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.