Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Docked widget size on maximise
scoobydoo last edited by
I have a QDockedWidget that contains a QWidget. The QWidget is setup to be 640x480 in the designer UI file. When i maximize it from the dock the window size is incorrect. It seems that the QDockedWidget sets the size & the width an height of my QWidget are wrong. I have tried to use the sizeHint() method to return 640x480 but this does not work either.
Surely there must be a way to set the size of the widget that is being maximized from a QDockedWidget?
Did you try with setMaximumSize() ?