Home »
Python »
PyQt MCQs
Which class is used to align the widgets horizontally in PyQt?
18. Which class is used to align the widgets horizontally in PyQt?
- QtBoxLayout
- QHBoxLayout
- QtHBoxLayout
- PyQtHBoxLayout
Answer: B) QHBoxLayout
Explanation:
PyQt provides QHBoxLayout class which is used to arrange widgets in a horizontal box.