My layout understanding needs improvement

Rich Shepard rshepard at
Thu Apr 22 20:57:59 BST 2021

On Thu, 22 Apr 2021, RoadrunnerWMC wrote:

> You *can* nest layouts in Qt, but you do it by adding the inner layout to
> the outer layout:


That's what I thought...

> group1 = qtw.QVBoxLayout()
> self.setLayout(group1)
> button_row = qtw.QHBoxLayout()
> group1.addLayout(button_row)

and I originally did this.

But python didn't like my syntax in places so I changed to a grid.



More information about the PyQt mailing list