PyQt5 QCalendarWidget – Getting Child of it at given co-ordinate
In this article we will see how we get the child of QCalendarWidget at the given co-ordinate/position. Calendar is not alone a single widget it is a mixture of lots of smaller widget which we refer as calendar child. There are many child such as table view, item delegate etc.
In order to do this we will use childAt method with the QCalendarWidget object.
Syntax : calendar.childAt(x, y)
Argument : It takes two integer as argument
Return : It return child of calendar at given position
Below is the implementation