'Qt how to set QFont weight I want

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



Solution 1:[1]

You want to use the pointSize property, not weight.

setPointSize

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 mzimmers