1、设置layout内元素的间隔,优化界面;

feature/struct-menu-20241023
simonyan 2 weeks ago
parent e977505138
commit 8c937cad48

@ -20,7 +20,9 @@ QLayout *CUIComponentBaseContainerWidget::getLayout(CUIConfig *conf)
} else if (layoutConf == "QVBoxLayout") {
layout = new QHBoxLayout;
} else {
layout = new QHBoxLayout;
layout = new QVBoxLayout;
}
layout->setSpacing(0);
layout->setMargin(0);
return layout;
}

@ -20,7 +20,9 @@ QLayout *CUIComponentBaseWidget::getLayout(CUIConfig *conf)
} else if (layoutConf == "QVBoxLayout") {
layout = new QHBoxLayout;
} else {
layout = new QHBoxLayout;
layout = new QVBoxLayout;
}
layout->setSpacing(0);
layout->setMargin(0);
return layout;
}

Loading…
Cancel
Save