Qt World Summit: Register Today!

Docked widget size on maximise

  • 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?

  • Lifetime Qt Champion


    Did you try with setMaximumSize() ?

Log in to reply