My layout understanding needs improvement
Rich Shepard
rshepard at appl-ecosys.com
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:
Roadrunner,
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.
Thanks,
Rich
More information about the PyQt
mailing list