In this article we will see how we can get 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
setTime method. We can set the maximum time to it with the help of
In order to do this we use
maximumTime method with the QDateEdit object
Syntax : date.maximumTime()
Argument : It takes no argument
Return : It returns QTime object
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.