[Qt-interest] Layout issue

Sajjad dosto.walla at gmail.com
Fri Nov 19 00:58:56 CET 2010


I am attaching the files for your kind scrutiny and suggestion

Regards
Sajjad

On Fri, Nov 19, 2010 at 12:42 AM, Malyushytsky, Alex <alex at wai.com> wrote:

>  It is difficult to say without seeing code.
>
> Small compilable code which demonstrates the problem may help.
>
>
>
> Alex
>
>
>
> *From:* qt-interest-bounces at trolltech.com [mailto:
> qt-interest-bounces at trolltech.com] *On Behalf Of *Sajjad
> *Sent:* Thursday, November 18, 2010 2:30 PM
>
> *To:* qt-interest at trolltech.com
> *Subject:* Re: [Qt-interest] Layout issue
>
>
>
> Hello Alex,
>
>
>
> I inserted the invalidate() function at the end of the slot that do the
> changes in the layout.
>
> But the behavior did not change. Still the extra spaces are there.
>
>
>
> Any other reference to look into?
>
>
>
>
>
> Regards
>
> Sajjad
>
> On Thu, Nov 18, 2010 at 11:02 PM, Malyushytsky, Alex <alex at wai.com> wrote:
>
> Try to call invalidate() on layout after changes.
>
>
>
> Alex
>
>
>
> *From:* qt-interest-bounces at trolltech.com [mailto:
> qt-interest-bounces at trolltech.com] *On Behalf Of *Sajjad
> *Sent:* Thursday, November 18, 2010 12:22 PM
> *To:* qt-interest at trolltech.com
> *Subject:* [Qt-interest] Layout issue
>
>
>
> Hello forum,
>
>
>
>
>
> I have a label and line edit which is horizontal layout and this layout is
> in turn inside the grid layout.
>
>
>
> I have declared a private slot that responds to  text changed signal of the
> line edit.
>
>
>
>
>
> The slots adds check boxes dynamically to the grid layout. Grid layout is
> the main layout of the class that i have sub-classed form QWidget.
>
>
>
>
>
> When i press 4, two four check boxes added dynamically to  the layout. Then
> again when i press 1 , previously added 4 check boxes are removed and the
> new one
>
> check box is added to the layout. But there is the extra space which was
> allocated while adding 4 check boxes. Those spaces remains ?
>
>
>
>
>
> Any hint to maintain the size of the widget dynamically while adding and
> removing check boxes from the layout?
>
>
>
>
>
>
>
> Regards
>
> Sajjad
>
>
>
>
> ---------------------------------------------------------------------------------------------------
> Weidlinger Associates, Inc. made the following annotations.
>
> “This message and any attachments are solely for the intended recipient and
> may contain confidential or privileged information. If you are not the
> intended recipient, any disclosure, copying, use, or distribution of the
> information included in this message and any attachments is prohibited. If
> you have received this communication in error, please notify us by reply
> e-mail and immediately and permanently delete this message and any
> attachments. Thank you.”
>
> “Please consider our environment before printing this email.”
>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101119/e39ab831/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DynamicWidget.h
Type: text/x-chdr
Size: 645 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101119/e39ab831/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DynamicWidget.cpp
Type: text/x-c++src
Size: 1720 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101119/e39ab831/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: text/x-c++src
Size: 209 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101119/e39ab831/attachment-0002.bin 


More information about the Qt-interest-old mailing list