[Qt-interest] QComboBox : autoresize to fit layout

Tom Panning lurchvt at gmail.com
Mon Mar 16 00:52:24 CET 2009


You probably want to set the horizontal size policy to Expanding (look up
QWidget::setSizePolicy() and QSizePolicy)

Tom`

On Sat, Mar 14, 2009 at 3:35 PM, Miguel Cardenas <mfcardenas at gmail.com>wrote:

> Hi
>
> One doubt, is it possible to set a QComboBox object in "autoresize" mode so
> it adjusts to the holding layout space available? for example when
> resizing/maximizing a window that it fits the available space instead of
> getting centered in the layout with no changes and leaving lots of blank
> space that is not attractive.
>
> Thanks!
>
> --
> Miguel Cardenas
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090315/88e83655/attachment.html 


More information about the Qt-interest-old mailing list