[PyQt] Limit the height of a Layout
starglider develop
starglider.dev at gmail.com
Wed Mar 3 20:43:34 GMT 2010
Hi Doug,
that's it I never try the setMaximumHeight because it only for widget and
the layouts are not widget,
but if I limit the height/width of every widget belonging to the layout I
get the result I want!
Thank for your help.
Regards,
Jorge
On 3 March 2010 13:33, Doug Bell <dougb at bellz.org> wrote:
> starglider develop wrote:
> > Thank you for your replay, but I'm doing everything by code,
> > I try to simulate a form with QtDesigner but the genereted code is a
> mess.
>
> Have you tried QWidget.setMaximumHeight(int) ?
>
> Doug
>
> > On 3 March 2010 01:37, <dcassidy36 at mass.rr.com> wrote:
> >
> > > Are you using QtDesigner? You can set the min and max size for each
> widget,
> > > so I'd probably look at that.
> > > --
> > > Regards,
> > > -Demetrius Cassidy
> > >
> > > ---- starglider develop <starglider.dev at gmail.com> wrote:
> > >
> > > =============
> > > Hello,
> > > I'm a newby and I have a question:
> > > how can I limit the height of a QHBoxLayout?
> > > e.g.:
> > > There is a central widget with a QHBoxLayout that as two QTableWidget
> and
> > > I
> > > want to limit the size of the first QTableWidget to 300 points,
> > > but let the second QTableWidget grow until the limit of the screen.
> > >
> > > Thank you in advance for your help.
> > >
> > >
>
> > _______________________________________________
> > PyQt mailing list PyQt at riverbankcomputing.com
> > http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100303/edbf49f1/attachment.html>
More information about the PyQt
mailing list