In this article we will see how we can get the font info object of the spin box, in order to set the font use
setFont method which takes
QFont object as argument, using it with the spin box object will change the font of all the text. Font Info object is an object which tells about the properties of the text like it is bold or not etc.
In order to get the fontInfo we use fontInfo method
Syntax : spin_box.fontInfo()
Argument : It takes no argument
Return : It returns QFontInfo object
Below is the implementation
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course