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