Home »
Python »
PyQt MCQs
Which class is used to align the widgets vertically in PyQt?
20. Which class is used to align the widgets vertically in PyQt?
- QtBoxLayout
- QVBoxLayout
- QtVBoxLayout
- PyQtVBoxLayout
Answer: B) QVBoxLayout
Explanation:
PyQt provides QVBoxLayout class which is used to arrange widgets in a vertical box.