Home »
MCQs »
Pygame MCQs
Which function is used for defining the size and position of a window in PyQt?
6. Which function is used for defining the size and position of a window in PyQt?
- setgeometry()
- setGeometry()
- getSetGeometry()
- set_Geometry()
Answer
The correct answer is: B) setGeometry()
Explanation
PyQt's method "setGeometry()" is used to define the size and position of Windows.
Syntax:
window.setGeometry(x, y, width, height)