PyQt5 QCalendarWidget – Setting Edit Focus Property
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