[Qt-interest] Layout issue

Sajjad dosto.walla at gmail.com
Thu Nov 18 21:22:03 CET 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101118/f15ef2b8/attachment.html 


More information about the Qt-interest-old mailing list