How can I create days in QDateEdit?

The standard behavior is that as soon as the day reaches 31, this button stops working. I would like it to reset to 1 and move on to the next month.

+4
source share
1 answer

I have not had the opportunity to verify this, but I know that QDateEdit implements QAbstractSpinBox, so you can call

myDateEdit.setWrapping(True) 

which should fulfill what you want.

Doc link

Update:

The term for this behavior is apparently called “rollover”, and here is the realization of one person who (again, I have not tested it) seems to be another potential solution:

Rollover QDateEdit

He emphasizes that its implementation does not take into account minimum or minimum dates.

+3
source

All Articles