Please nominate your Qt Champions for 2021!

QDockWidget height size

  • Hi every one,

    I am trying to use a QDockWidget with a minimum height size but whenever inserting this
    DockWidget the content is not fully visible however when I move the Dockwidget then the
    content (some Comboxes and Qlabels) are fully visible.

    How can I set a very smalll height for a DockWidget without loosing the content display?

    dock1= new QDockWidget();

    Thks for your help

  • Lifetime Qt Champion


    As silly as it may sound: choose a better height. Or use the size hint of the widgets contained in the dock widget to set a sensible maximum size.

    One thing that is not clear: you are writing about minimum size while setting the maximum height. Is there a typo somewhere ?

Log in to reply