Manually set Geometry of the Outer most layout

The size of the layout is actually the collective space acquired by the different widgets. How ever, There is an easy way to set the over all geometry.

If we consider the top level layout, we’ve a widget to set the size. Just like any other QWidget, we can setGeometry() of this as well.

For example, suppose we have an outermost layout ,QVBoxLayout. We’ll set
ui->verticalLayoutWidget->setGeometry();and done!

No comments:

Post a Comment