In this article we will see how we can get the children region, children region holds the combined region occupied by the spin box’s children. In order to do this we use
childrenRegion method. If we delete all the children of the spin box then this property will return an empty region.
In order to do this we use childrenRegion method.
Syntax : spin_box.childrenRegion()
Argument : It takes no argument
Return : It returns QRegion object
Note : Hidden children are excluded
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.