PyQt5 QDoubleSpinBox – Stepping By
In this article we will see how we can step by definite number the value of the QDoubleSpinBox programmatically. Double spin box can take decimal value as input, we can set value with the help of setValue method, stepping by will add the definite number to the current value it can be positive as well as negative.
Note : If adaptive type is selected it will add the value in decimal part else in the real part.
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
In order to do this we will use stepBy method with the double spin box object.
Syntax : dd_spin.stepBy(n)
Argument : It takes integer as argument
Return : It returns None
Below is the implementation