In this article we will see how we can decrement i.e step up the date of the QDateEdit. Stepping date means to decrement the date, it decrements the current selected section i.e day, month or year. Down arrow buttons performs same action although we can remove that button and make our own button.
Note : When any section reaches the maximum value then it will not increment anymore, for example, month section can not be incremented after month 12
In order to do this we use
stepDown method with the QDateEdit object
Syntax : date.stepDown()
Argument : It takes no argument
Return : It returns None
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.