tags:

views:

35

answers:

1

I've created a form with code and I have a big problem. Every element aligmented to the bottom. I painted the clear and aligned space blue on the picture. How can I set every alignment to top?

If you need the code in this question you'll find it: http://stackoverflow.com/questions/3574147/qt-heap-memory-corruption

alt text

A: 

I found what was the problem. I used addStretch() on every layout after initialization, so it spaced the other widgets to the bottom of the form.

I thought yesterday, that addStrech(int) sets the widht ration for every vertical layout in a horizontal layout. Now I know addStrech is for spacing.

Roland Soós
Glad you figured it out. You can accept your own answer so it won't show up in the "unanswered" list.
Arnold Spence