Location>code7788 >text

QGroupBox customization style (imitation DotNetBar)

Popularity:703 ℃/2024-08-20 20:25:03

The QSS are as follows.

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;
}

Final effect: