February 15, 2012

TheDestroyer TheDestroyer
Lab Rat
145 posts

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! :)

2 replies

February 15, 2012

fluca1978 fluca1978
Lab Rat
524 posts

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?

February 15, 2012

Volker Volker
Robot Herder
5428 posts

you can try to set the sizePolicy and/or the horizontal/vertical stretch on the widget.

The layout management docs have the details.

 
  ‹‹ Simple 2 integer number calculator      QtConcurrent and moveToThread ››

You must log in to post a reply. Not a member yet? Register here!