In this article we will see how we can set the edit focus to 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.
Note : This feature is only available in Qt for Embedded Linux.
In order to do this we will use
setEditFocusmethod with the QCalendarWidget object.
Syntax : calendar.setEditFocus(True)
Argument : It takes bool 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