PyQt5 QCalendarWidget – Mapping Co-ordinate system to Calendar co-ordinate system
In this article, we will see how we can map the co-ordinate system of the QCalendarWidget. In order to do this we use mapFrom method, this translates the calendar coordinate position from the coordinate system of parent to this widget’s coordinate system. The parent must not be None and must be a parent of the calling widget.
In order to do this we will use mapFrom method with the QCalendarWidget object.
Syntax : calendar.mapFrom(parent, point)
Argument : It takes QWidget object that is parent and the QPoint object as argument
Return : It return QPoint object
Below is the implementation