PyQt5 – rect() method
rect() method belongs to
QtCore.QRect class, this method is used to get the geometry of the window or any widget. It returns the object of type
QRect which tells the property of the rectangle.
Syntax : widget.rect()
Argument : It takes no argument.
Return : It returns the rectangle of the widget
PyQt5.QtCore.QRect(0, 0, 600, 400) PyQt5.QtCore.QRect(0, 0, 100, 30)
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