PyQt5 QSpinBox – Setting Hinting Preference
In this article we will see how we can check if the text of the spin box is fixed pitch or not, a mono-spaced font, also called a fixed-pitch, fixed-width, or non-proportional font, is a font whose letters and characters each occupy the same amount of horizontal space. This contrasts with variable-width fonts, where the letters and spacings have different widths.
In order to get the information about the font we have to get the QFontInfo object of spin box which can be done using
In order to do this we fixedPitch method with the QFontInfo object of the spin box
Syntax : font_info.fixedPitch()
Argument : It takes no argument
Return : It returns bool
Below is the implementation