QVBoxLayout:如何使用 Qt 设计器将小部件与顶部对齐 [英] QVBoxLayout: How to align widgets to the top using Qt designer
本文介绍了QVBoxLayout:如何使用 Qt 设计器将小部件与顶部对齐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我仅将 qt 设计器用于 ui 布局
这几乎与这个问题相同:
解决方案
右键单击相关小部件并选择布局对齐 > 顶部.
(注意:新的对齐方式只会在预览模式下显示).
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.
解决方案
Right-click the relevant widget and select Layout alignment > Top.
(NB: the new alignment will only be shown in preview mode).
这篇关于QVBoxLayout:如何使用 Qt 设计器将小部件与顶部对齐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文