[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] How do I stretch layouts in a QSplitter using Designer?
From: Edwin Marshall <aspidites () inbox ! com>
Date: 2009-04-27 21:31:05
Message-ID: 5538CE0EFA4.00000274aspidites () inbox ! com
[Download RAW message or body]
[Attachment #2 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD><META http-equiv=Content-Type content="text/html; charset=utf-8"><META \
content="INBOX.COM" name=GENERATOR></HEAD> <BODY>
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. \
<br><br>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.<br><br>What properties must I set \
so that when the user resizes, the top layout is always 1/4 the size of the bottom \
one?<br><br>Thanks in advance,<br>Edwin Marhall <br>
</BODY>
</HTML>
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic