QSS如下:
Css
QGroupBox
{
border:1px solid gray;
border-radius:5px;
margin-top:3ex;
font-size:10pt;
color:#1f3978;
}
QGroupBox::title
{
subcontrol-origin:margin;
subcontrol-position:top center;
border:1px solid lightgray;
border-radius:3px;
padding:3px;
color:#1f3978;
border-color:gray;
}
最终效果: