PyQt5 QSpinBox – Checking if certain region intersects the Children region
In this article we will see how we can check if a certain region can be QRect or QRegion intersects children region of spin box, children region holds the combined region occupied by the spin box’s children. In order to get the children region we use childrenRegion method.
In order to do this we use intersects method with the children region object of the spin box Syntax : children_region.intersects(rectangle) Argument : It takes QRect object as argument also it can take QRegion object Return : It returns bool
Below is the implementation
My Personal Notes arrow_drop_up
Please Login to comment...