QVBoxLayout: How to align widgets to the top using Qt designer

十年热恋 提交于 2021-01-27 04:38:22

问题


I'm using qt designer only for ui layout

This is almost the same question as this one : QVBoxLayout: How to vertically align widgets to the top instead of the center

but i'm interested on how to do that in qt designer. I don't see any option in QVBoxLayout for that top alignment.


回答1:


Right-click the relevant widget and select Layout alignment > Top.

(NB: the new alignment will only be shown in preview mode).



来源:https://stackoverflow.com/questions/42741396/qvboxlayout-how-to-align-widgets-to-the-top-using-qt-designer

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!