[PySide] second argument for QLayout.addWidget

Frank Rueter | OHUfx frank at ohufx.com
Tue Apr 4 09:18:15 CEST 2017


Aaah, thanks!
I looked at the docs for QLayout and QHBoxLayout, but not QBoxLayout :-D

On 4/04/17 7:15 PM, Florian Bruhin wrote:
> On Tue, Apr 04, 2017 at 07:13:44PM +1200, Frank Rueter | OHUfx wrote:
>> Hi,
>>
>> I just saw some example code like this:
>>      topLayout = QHBoxLayout()
>>      topLayout.addWidget(self.pathLabel, 1)
>>
>> What does the second argument to? It doesn't seem to be documented anywhere.
> It's documented in Qt's docs:
> http://doc.qt.io/qt-4.8/qboxlayout.html#addWidget
>
> Florian
>




More information about the PySide mailing list