Home »
Python »
PyQt MCQs
Which is/are the popular method(s) of QBoxLayout class in PyQt?
9. Which is/are the popular method(s) of QBoxLayout class in PyQt?
- addWidget()
- addStretch()
- addLayout()
- All of the above
Answer: D) All of the above
Explanation:
All of the given methods of the QBoxLayout class. They are used for various purposes such as the addWidget() method is used to add a widget to the BoxLayout, the addStretch() method is used to create an empty stretchable box, and the addLayout() method is used to add another nested layout.