Qt how to set QFont weight I want

251 Views Asked by At

For example, I want set the QFont weight 120 pixels or 1.5mm. Now, the weight has been defined by enumeration of 0~99, that's not my need. I upload two images for example: normal text

expand text

1

There are 1 best solutions below

6
On

You want to use the pointSize property, not weight.

setPointSize