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.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论