PyQt5 QSpinBox – Getting the leading value of the font
In this article we will see how we can get the leading value of the spin box’s font. Leading value of the text means the distance between two baselines of lines of type. The word ‘leading’ originates from the strips of lead hand-typesetters used to use to space out lines of text evenly. The word leading has stuck, but essentially it’s a typographer’s term for line spacing.
In order to do this we use
leading method with the spin box’s QFontMetrics object.
Syntax : font_metrics.leading()
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. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course