布局管理QHBoxLayout 水平布局, QGridLayout 网格布局,QVBoxLayout 竖直布局 在qt designer 右上角 有一个object inspector ,选择需要布局的控件,再点击布局(水平,网格,竖直),这就应该可以了