PyQt5 QSpinBox – Getting the line spacing value of the text
In this article we will see how we can get the line spacing value of the spin box’s text. Line spacing is the distance from one base line to the next. Line spacing value is always equal to the sum of leading value and height of the text.
In order to do this we use
lineSpacing method with the spin box’s QFontMetrics object.
Syntax : font_metrics.lineSpacing()
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