In this article we will see how we get the children rectangle of the QCalendarWidget. Calendar is not alone a single widget it is a mixture of lots of smaller widget which we refer as calendar’s child. There are many child such as table view, item delegate etc, we use
children method to get all the children of it. Children rectangle is the bounding rectangle of all the children except hidden children.
In order to do this we will use
childrenRectmethod with the QCalendarWidget object.
Syntax : calendar.childrenRect()
Argument : It takes no argument
Return : It return QRect 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.