Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
List is expanding and hiding everything else!!
TheDestroyer last edited by
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?
fluca1978 last edited by
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?
goetz last edited by
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.