In this article we will see how we can get the style hint of the spin box text. Style hints are used by the font matching algorithm to find an appropriate default family if a selected font family is not available. There are many styles hints offered by the spin box like AnyStyle, SansSerif, Times etc. We can set the style hint to the spin box with the help of
In order to do this we use
styleHint method with the QFont object of the spin box.
Syntax : font.styleHint()
Argument : It takes no argument
Return : It returns QFont’s Style hint object but when get printed it shows the value associated with it
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