My original ui file contained two widgets inside a vertical QSplitter. The top widget had a vertical stretch of 1, and the bottom one had a vertical stretch of 4. As such, if the user resizes, the top widget will always be 1/4 the size of the bottom one.

I have decided to change my ui file slightly, such that the top widget is now a vertical hbox with two widgets in it, and the bottom one is a vertical hbox with two widgets in it as well. The probem is, if I set all the widgets' vertical stretch properties in a similar manner as described above, when a user resizes, the top and bottom layouts still maintain a 1:1 ratio. I even tried setting each layout's layoutStretch property, which doesn't help either.

What properties must I set so that when the user resizes, the top layout is always 1/4 the size of the bottom one?

Thanks in advance,
Edwin Marhall
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to