Hi Doug,<br>that's it I never try the setMaximumHeight because it only for widget and the layouts are not widget,<br>but if I limit the height/width of every widget belonging to the layout I get the result I want!<br>
<br>Thank for your help.<br><br>Regards,<br>Jorge<br><br><div class="gmail_quote">On 3 March 2010 13:33, Doug Bell <span dir="ltr"><<a href="mailto:dougb@bellz.org">dougb@bellz.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">starglider develop wrote:<br>
> Thank you for your replay, but I'm doing everything by code,<br>
> I try to simulate a form with QtDesigner but the genereted code is a mess.<br>
<br>
</div>Have you tried QWidget.setMaximumHeight(int) ?<br>
<br>
Doug<br>
<div class="im"><br>
> On 3 March 2010 01:37, <<a href="mailto:dcassidy36@mass.rr.com">dcassidy36@mass.rr.com</a>> wrote:<br>
><br>
> > Are you using QtDesigner? You can set the min and max size for each widget,<br>
> > so I'd probably look at that.<br>
> > --<br>
> > Regards,<br>
> > -Demetrius Cassidy<br>
> ><br>
> > ---- starglider develop <<a href="mailto:starglider.dev@gmail.com">starglider.dev@gmail.com</a>> wrote:<br>
> ><br>
> > =============<br>
> > Hello,<br>
> > I'm a newby and I have a question:<br>
> > how can I limit the height of a QHBoxLayout?<br>
> > e.g.:<br>
> > There is a central widget with a QHBoxLayout that as two QTableWidget and<br>
> > I<br>
> > want to limit the size of the first QTableWidget to 300 points,<br>
> > but let the second QTableWidget grow until the limit of the screen.<br>
> ><br>
> > Thank you in advance for your help.<br>
> ><br>
> ><br>
<br>
</div>> _______________________________________________<br>
> PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
> <a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
<br>
_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
</blockquote></div><br>