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
childAtmethod 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
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