PDA

View Full Version : Qt Layout alignment



bunjee
18th December 2007, 19:08
Hello I have 3 widgets inside a layout.

1 on each side (left and right) and one on the center.

What I would like to achieve is :
- No matter what is the size of the left widget
- No matter what is the size of the right widget
- Keep the center widget on the absolute parent's widget center.

Any way to do this inside a layout ?

marcel
18th December 2007, 19:15
Take a look at this ui file. It is saved with Designer 4.3.3.
You have to add a horizontal spacer after the first widget and before the last widget, and add all of them(3 widgets + 2 spacers) in a horizontal layout.