In this article we will see how we can get over line position of the spin box’s text. Over line position is the distance from the base line to where an over line should be drawn. An over line, overs core, or over bar, is a typographical feature of a horizontal line drawn immediately above the text. In mathematical notation, an over line has been used for a long time as a vinculum, a way of showing that certain symbols belong together.
In order to do this we use
overlinePos method with the spin box’s QFontMetrics object.
Syntax : font_metrics.overlinePos()
Argument : It takes no argument
Return : It returns integer.
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.