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.
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