[Qt-interest] Resizable child widgets
Nitin Mahajan
nitinm76 at yahoo.com
Fri Oct 9 08:36:19 CEST 2009
Hello,
----- Original Message ----
> From: André Somers <andre at familiesomers.nl>
> To: qt-interest at trolltech.com
> Sent: Friday, October 9, 2009 10:39:47
> Subject: Re: [Qt-interest] Resizable child widgets
>
> Please show us the code, so we can see where you go wrong. Impossible to
> judge just based on your description.
> The whole idea of layouts is that they work as you describe, so you must be
> missing a step somewhere...
Here are the sources. When I stretch and resize the main widget horizontally, the sliders should also get resized horizontally.
When I stretch and resize the window vertically, the sliders should remain at the same place at bottom in the main widget.
please let me know, if I am missing something basic? I am new to GUI programming.
regards
-Nitin
>
> André
>
>
> -----Oorspronkelijk bericht-----
> Van: qt-interest-bounces at trolltech.com
> [mailto:qt-interest-bounces at trolltech.com] Namens Nitin Mahajan
> Verzonden: vrijdag 9 oktober 2009 6:30
> Aan: qt-interest at trolltech.com
> Onderwerp: [Qt-interest] Resizable child widgets
>
> Hello,
>
> I created a small example project through Qt creator.
>
> In this form I added a Horizontal layout to a Widget and then added a
> QSlider to the layout. When I execute this and stretch the main widget
> horizontally, I do not see the slider getting resized.
>
> I want to get the slider also stretched along with the main widget
> horizontally, the same way Phonon::seekSlider gets stretched in Mediaplyer
> example. Can some one give me some pointer to this?
>
> regards
>
> -Nitin
>
>
>
> Get your preferred Email name!
> Now you can @ymail.com and @rocketmail.com.
> http://mail.promotions.yahoo.com/newdomains/aa/
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: application/octet-stream
Size: 2360 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091008/60ac53b4/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mediaplayer.pro
Type: application/octet-stream
Size: 718 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091008/60ac53b4/attachment-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.cpp
Type: application/octet-stream
Size: 389 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091008/60ac53b4/attachment-0002.obj
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test.h
Url: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091008/60ac53b4/attachment.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.ui
Type: application/octet-stream
Size: 1543 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091008/60ac53b4/attachment-0003.obj
More information about the Qt-interest-old
mailing list