To Alex
Constant Value Description
QFont::Thin 0 0
QFont::ExtraLight 12 12
QFont::Light 25 25
QFont::Normal 50 50
QFont::Medium 57 57
QFont::DemiBold 63 63
QFont::Bold 75 75
QFont::ExtraBold 81 81
QFont::Black 87 87
And in script work fine QFont(const QString &family, int pointSize = -1, bool italic = false, int weight = -1) instead QFont(const QString &family, int pointSize = -1, int weight = -1, bool italic = false). I don't know why. Empirical way