QT widget alignment problem
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: Qt heap memory corruption
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.
精彩评论