Home »
MCQs »
Pygame MCQs
Which is/are the layout manager class(s) in PyQt?
19. Which is/are the layout manager class(s) in PyQt?
- QHBoxLayout
- QVBoxLayout
- QGridLayout
- All of the above
Answer
The correct answer is: D) All of the above
Explanation
There are four general-purpose layout manager classes in PyQt.
- QHBoxLayout class is used to arrange widgets in a horizontal box.
- QVBoxLayout class is used to arrange widgets in a vertical box.
- QGridLayout class is used to arrange widgets in a grid.
- QFormLayout class is used to arrange widgets in two columns.