In this article we will see how we can check if the edit focus is enabled or not of the QCalendarWidget. If this property is enabled it make the calendar to have edit focus, in which case Qt::Key_Up and Qt::Key_Down will be delivered to the calendar normally; otherwise, Qt::Key_Up and Qt::Key_Down are used to change focus. It can be made enable or disable using
Note : This feature is only available in Qt for Embedded Linux.
In order to do this we will use
hasEditFocusmethod with the QCalendarWidget object.
Syntax : calendar.hasEditFocus()
Argument : It takes no argument
Return : It return bool
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