My layout understanding needs improvement
Rich Shepard
rshepard at appl-ecosys.com
Thu Apr 22 18:41:40 BST 2021
On Thu, 22 Apr 2021, Vincent Vande Vyvre wrote:
> There's two layouts on the main widget:
>
> group1 = qtw.QVBoxLayout()
> self.setLayout(group1) # 1
>
> button_row = qtw.QHBoxLayout()
> self.setLayout(button_row) # 2 ! Remove this line.
Vincent,
Okay. I was thinking in wxPython terms where I could nest layouts; e.g., a
set of horizontal (row) layouts within a vertical layout.
I'll use a QGridLayout instead.
Thanks very much,
Rich
More information about the PyQt
mailing list