Re: [PyQt] need help with sizing QStackedWidgets

2013-08-26 Thread Eric Frederich
Replying to self with a solution in case someone else comes across this problem. david_boddie on freenode's #pyqt channel helped me out. A solution was to call layout.setRowStretch(len(labels), 1) ... after adding the spacer. Another solution was to nest the grid layout into a BoxLayout a

Re: [PyQt] need help with sizing QStackedWidgets

2013-08-26 Thread Eric Frederich
Would appreciate some help here. I don't like how these stacked widgets take up all of this vertical space when the window is resized. I have tried setting a size policy to minimum on the stacked widgets but no luck. On Fri, Aug 23, 2013 at 4:02 PM, Eric Frederich wrote: > Here is a small exampl

[PyQt] need help with sizing QStackedWidgets

2013-08-23 Thread Eric Frederich
Here is a small example. I tried putting a vertical spacer on the bottom yet these stacked widgets want to take up space when resized. #!/usr/bin/env python from PyQt4.QtCore import * from PyQt4.QtGui import * class TestWidget(QWidget): def __init__(self, labels, parent=None): super(