qt5---布局

QHBoxLayout  水平布局:

Header:   #include <QHBoxLayout>     

qmake:  QT += widgets

Inherits:QBoxLayout

 

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

 

 

 

 

 

 

 

QVBoxLayout 垂直布局: 

Header:  #include <QVBoxLayout>

qmake:  QT += widgets

Inherits:QBoxLayout

 

 

 

 

posted @ 2019-08-29 08:59  天子骄龙  阅读(236)  评论(0编辑  收藏  举报