[PySide] second argument for QLayout.addWidget

Florian Bruhin me at the-compiler.org
Tue Apr 4 09:15:59 CEST 2017


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

-- 
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20170404/d9e6a06b/attachment.sig>


More information about the PySide mailing list