PyQt5 QSpinBox – Setting font to the whole text
In this article we will see how we can change the size and font of all the text present in the spin box, in order to do so we will use
setFont method which takes
QFont object as argument, using it with the spin box object will change the font of all the text.
Syntax : spin_box.setFont(font)
Argument : It takes QFont object as argument
Return : It returns None
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