List is expanding and hiding everything else!!



  • Hello guys,

    I have a list on a QGridLayout, it's exanding and fillings 80% of my widget! I tried resizing, setting size policy to fixed, setting minimum size and resizing after that, and all this doesn't work...

    How can I tell the grid to evenly give space to the elements? or how can I make the elements smaller?

    Thanks! :)



  • I don't understand why having the list to expand is not good, since you should let the layout to do its job. And if widgets are within the layout all should be fine. Have you tried to add a spacer?



  • you can try to set the "sizePolicy":/doc/qt-4.8/qwidget.html#sizePolicy-prop and/or the horizontal/vertical stretch on the widget.

    The "layout management":/doc/qt-4.8/layout.html docs have the details.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.