开发者

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

QT widget alignment problem


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜