In this article we will see how we can set the minimum date to the QCalendarWidget. The minimum date of QCalendarWidget restricts the user selection below the minimum date, i.e. the user can only select dates greater than the specified minimum date. Dates below the minimum date gets disabled.
In order to do this we will use
setMinimumDatemethod with the QCalendarWidget object.
Syntax : calender.setMinimumDate(date)
Argument : It takes QDate object as argument
Return : It return 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. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course