qt5---布局

QHBoxLayout  水平布局:

Header:   #include <QHBoxLayout>     

qmake:  QT += widgets

Inherits:QBoxLayout

 

选中要布局的控件--->点击布局按钮:

 

 

 

 

 

 

 

QVBoxLayout 垂直布局: 

Header:  #include <QVBoxLayout>

qmake:  QT += widgets

Inherits:QBoxLayout

 

 

 

 

转载于:https://www.cnblogs.com/liming19680104/p/11427674.html