Home »
MCQs »
Pygame 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
The correct answer is: D) All of the above
Explanation
All of the given methods of the QBoxLayout
. They are used for the various purposes such as addWidget()
method is used to add a widget to the BoxLayout
, addStretch()
method is used to create an empty stretchable box, and addLayout()
method is used to add another nested layout.