Unsolved change different font size of different widget at a time
-
Is there any way to change the fonts of the whole app's widgets,label,pushbutton with just one spinbox ??
-
Hi
Well there is QApplication::setFont(font); -
problem is i used mixed font in different widgets . like some button has font size 11 and some has 10.
so i guess i have to set one number to all??
thanks .
-
@saber
It depends on what goal is.
Use same size on all or what you want.
Else you will to handle the buttons manually.
So yes, one size is easier.if you already are using style sheets, it could also be an option.
-
@mrjj
i don't know what is best for that.
i have to use different font size .
i used the font option in qtdesigner . but if i could get the different font size with style sheets , i will do that. -
maybe you could try with stylesheet ? like "QWidget { font-family: xxxx }" ?
UPDATE:
well I just found that QWidget only supports background style properties, useless suggestion, plz ignore me. -
@nkiy
Hi, you can use fonts :)