QT:设置布局边缘

QHBoxLayout * horizontalLayout = new QHBoxLayout;
//setContentsMargins(int left, int top, int right, int bottom)
//设置上下左右的边距分别为0
horizontalLayout->setContentsMargins(0, 0, 0, 0);
原文地址:https://www.cnblogs.com/2018shawn/p/11429221.html