It looks like Qt6 may have changed the implementation of weight constants, and no longer accepts integers, only `QFont.Weight` constants.
It looks like Qt6 may have changed the implementation of weight constants, and no longer accepts integers, only
QFont.Weightconstants.