In this article we will see how we can set the over line to the text of spin box. An over line, overs core, or over bar, is a typographical feature of a horizontal line drawn immediately above the text. Below is how the spin box looks like with the over line text.
In order to do this we use
setOverline method with the QFont object of the spin box
Syntax : font.setOverline(True)
Argument : It takes bool 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.