Solved Applying stylesheet to a QGroupBox
-
Good Day All,
I have a QGroupBox which contains several radio buttons, I want to change the size of the group box 'title' without effecting the contents of the group box, plz help me. -
like this:
QGroupBox { font-size: 24px; }
-
@Devopia53 If you do like this ,the stylesheet will effect the contents also, anyways we got the answer thanks for the reply
-
In general if you assign a stylesheet to a cotrol you have to style the complete control.
It is not possible to style only parts of a widget with a stylesheet.Karl-Heinz
-
@Amogh ,
groupBox->setStyleSheet("QGroupBox::title{font-size:20pt;}");