In this article we will see how we can map the co-ordinate system from the QCalendarWidget. In order to do this we use
mapTo method, this translates the widget coordinate position to the coordinate system of parent. The parent must not be None and must be a parent of the calling widget.
In order to do this we will use
mapTomethod with the QCalendarWidget object.
Syntax : calendar.mapTo(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
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.