Qt designer stylesheet help

Thanks guys for this but for some reason i cant change the thickness of this thick white line…or just make the group box title be in the middle of the border line?

I like the alignment in image 2 but want the style of image 1, atm i cant seem to have both :confused:

1 =

QGroupBox
{
    selection-background-color: #ffaa00;
    border-style: solid;
    border: 1px solid;
    border-radius: 5;
}

QGroupBox:focus
{
border: 2px solid QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffa02f, stop: 1 #d7801a);
}

2 =

QGroupBox:focus
{
border: 2px solid QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffa02f, stop: 1 #d7801a);
}

did you want QGroupBox::title?

QGroupBox::title
{
    left: 10px;
}

EDIT:

Mis-read post.

You want to adjust the top margin then offset the title;


QGroupBox
{
	margin-top: 10px;
}

QGroupBox::title
{
    bottom: 10px;
}

Worked like a charm. Thankyou :slight_smile: