...
The qaddlayout command adds a layout to another layout according the layout policy of the receiving layout. This command is used when nesting layouts.
Arguments
parentboxlayout
An instance of qhboxlayout or qvboxlayout. This is the layout that will contain the child layout to be added.
...
parentgridlayout
An instance of qgridlayout, acting as the receiving layout.
...
The row in the receiving qgridlayout where the child layout will be positioned.
...
The column in the receiving qgridlayout where the child layout will be positioned.
...
The above example shows two buttons arranged in their own horizontal layout, which is added to the main vertical layout using the qaddlayout command.