QT:设置布局边缘

QHBoxLayout * horizontalLayout = new QHBoxLayout;
//setContentsMargins(int left, int top, int right, int bottom)
//设置上下左右的边距分别为0
horizontalLayout->setContentsMargins(0, 0, 0, 0);

 

posted @ 2019-08-29 13:36  余生以学  阅读(2218)  评论(0编辑  收藏  举报