PyQt5: nested layouts

Rich Shepard rshepard at appl-ecosys.com
Fri Apr 30 00:59:35 BST 2021


On Thu, 29 Apr 2021, Rodrigo de Salvo Braz wrote:

> The problem occurs at line
> row1 = qtw.QHBoxLayout(self)

> When you create a layout with a QWidget argument (here, self), you are
> saying that this will be the layout for that widget. However, you had
> already done the same for the inner layout:

> Hope that helps.

Rodrigo,

Yes, it helps immensly. I still have issues knowing when to use self and
when not to use it. While I understand the concept I still get the details
wrong.

Thanks very much,

Rich


More information about the PyQt mailing list