Home »
Python »
PyQt MCQs
Which is/are the layout manager class(s) in PyQt?
21. Which is/are the layout manager class(s) in PyQt?
- QHBoxLayout
- QVBoxLayout
- QGridLayout
- QFormLayout
- All of the above
Answer: E) 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.