[PyQt] How to dynamically add widgets to a verticle layout?

Matt Newell newellm at blur.com
Tue Jun 23 00:54:06 BST 2009

On Monday 22 June 2009 16:38:40 matt.dubins at sympatico.ca wrote:
> I too am hitting this roadblock.  Is there a way that the layout can
> automatically resize with the addition of new widgets?
> Matt Dubins
> -- Adam Chrystie wrote :
> As I add more QLineEdits, they are drawn closer and closer together and
> eventually overlap each other instead of drawing spaced apart from each
> other.
> Can anyone offer any tips to doing this?
> --
> This message was sent on behalf of matt.dubins at sympatico.ca at
> openSubscriber.com
> http://www.opensubscriber.com/message/pyqt@riverbankcomputing.com/9665274.h
>tml _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Trying calling resize on the widget using the result of layout.sizeHint().

I'm not sure that it'll work and I think it depends on how the layout is 


More information about the PyQt mailing list