In this article we will see how we can set maximum date time to the QDateEdit. Sometime there is a need to set maximum date time so that user can’t enter date time which are beyond the maximum date time. We can set date time to date edit with the help of
In order to do this we use
setMaximumDateTime method with the QDateEdit object
Syntax : date.setMaximumDateTime(date_time)
Argument : It takes QDateTime object as 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.