Qt 布局时组建不贴边 qt 使用布局时,里面的组建不贴边时,调用 setContentsMargins(0,0,0,0); 例如: vlay1 = new QVBoxLayout(); vlay1->setContentsMargins(0,0,0,0);