I have a QMainWindow that, sometimes, resizes when I add a dock widget to it. I would like to prevent that size change because it makes the window too big for the screen.
I have thought to undock the widget if it causes the problem, but I don't find any QWidget event that trigger just after the window' size change. Is there any event that I could use in my dock widget to know that the window just resized because of it?