PDA

View Full Version : Qt layout space + stretch



bunjee
20th December 2007, 15:55
Hey there,

I'd like to add a Spacer item to a QBoxLayout that also stretch.
According to Qt documentation you can only add a stretch or a spacer.

Any way to add both at the same time?

marcel
20th December 2007, 15:57
What behavior are you trying to achieve?

bunjee
20th December 2007, 16:02
A stretcher with a minimum size I guess.

bunjee
20th December 2007, 16:53
Here is an example :


getLayout().insertSpacing(index, width);
getLayout().insertStretch(index, stretch);

I would like this


getLayout().insertStretch_and_space(index, width, stretch);

or equivalent