PyQt5 QDateEdit – Setting Maximum Date which user can enter
In this article we will see how we can set maximum date to the QDateEdit. Sometimes there is a need to set maximum date so that user can’t enter date which are beyond the maximum date for example when user is asked to enter date of birth, user should not be allowed to enter future date then need for setting maximum date arises.
In order to do this we use
setMaximumDate method with the QDateEdit object
Syntax : date.setMaximumDate(date)
Argument : It takes QDate object as argument
Return : It returns None
Below is the implementation
My Personal Notes arrow_drop_up
Please Login to comment...