[Qt-interest] resizing the window

AK qtbond007 at gmail.com
Fri Apr 29 08:10:56 CEST 2011


Try QWidget::adjustSize()

It will be good ff you can attach a image of what you are trying to achieve.

On Mon, Apr 25, 2011 at 12:06 PM, Sujan Dasmahapatra <sdh at lmwindpower.com>wrote:

>  Dear Friends
>
> I have a QScrollArea where I am fitting many widgets onto it. Now a
> treeview is also there on the left side of the window. So when I click to
> launch the widgets some portion is only visible. How can I resize the widget
> to fit to the screen.
>
>
>
> QScrollArea *area = new QScrollArea(this);
>
> QWidget *widget = new QWidget(area);
>
> area->setWidget(widget);
>
>
>
> This is setting the widget but since a treeWidget is also there so some
> portion of the widget is not visible on the right side. How can I fit it
> onto the screen. Thanks sujan
>
>
>
>
>
> Kind Regards,
>
>
>
>
>
> *Sujan Dasmahapatra
> *Project Leader, Aero Group
> Aero Group
>
> Tel    +91 80 66470248
> Mob
>
> sdh at lmwindpower.com <%25EMAIL%25>
>
>
>
> *LM Wind Power Blades*
>
> lmwindpower.com
>
>
>
> *Together we capture the wind to power a cleaner world*
>  ------------------------------
>
>
>
> This e-mail and any attachments are confidential. If you are not the named
> or intended recipient, please notify the sender immediately and do not
> disclose the contents to any other person, use it for any purpose, or store
> or copy the information in any medium. Any unauthorized disclosure, use or
> storage is prohibited and might be unlawful.
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110429/d7a9e003/attachment.html 


More information about the Qt-interest-old mailing list