PyQt5 QDateTimeEdit – Setting Wrapping Property
In this article we will see how we can set wrapping property of the QDateTimeEdit widget. QDateTime is basically a combination of QDate and QTime i.e it has both date and time. And QDateTimeEdit widget is used to show or receive the QDateTime. Wrapping property makes stepping up from maximum date time will take user to the minimum date time and vice versa. Wrapping only make sense if we have minimum and maximum date time set.
In order to do this we will use
setWrapping method with the QDateTimeEdit object.
Syntax : datetimeedit.setWrapping(True)
Argument : It takes bool as argument
Return : It returns None
Below is the implementation