PDA

View Full Version : Expanding QLabel



mullwaden
15th November 2008, 03:51
I have a QVBoxLayout into which I add things qlineEdit and buttons. These will then space themselves out nicely. However the QLabel does no do this, it takes up as much space as possible and squeezes the rest together. I would like it to behave like the other widgets.

so a layout like

_


_


_

turns into


label


_
_
_



Beautiful illustration. Anyhow really need help on this :)

caduel
15th November 2008, 09:08
if the other widgets need more space: set a minimum size, or a size policy;
if you want to limit the QLabel: set a maximum size and/or size policy