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.