PyQt5 QCalendarWidget – Accessing Children Region
In this article we will see how we get the children region 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 region is the region(area occupied) of all the children except hidden children i.e combined region of all the widgets.
In order to do this we will use
childrenRegionmethod with the QCalendarWidget object.
Syntax : calendar.childrenRegion()
Argument : It takes no argument
Return : It return QRegion 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. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course