qt-interest@trolltech.com
[Top] [All Lists]

Re: [Qt-interest] Removing widget from layout

Subject: Re: [Qt-interest] Removing widget from layout
From: "R. Reucher"
Date: Fri, 6 Feb 2009 13:53:30 +0100
On Fri February 6 2009 13:48:16 NARCISO, Rui wrote:
> I have a 2x2 QGridLayout and at the push of button I want to keep on my
> layout only one of the widgets on this layout and hide the others.
>
> I have so far been able to make sure the selected widget takes up the
> entire layout, however the other 3 widgets that i remove using the
> QGridLayout::removeWiget command remain on screen in front of the one that
> takes the entire layout...
>
> I have to use the QGridLayout apporach I just mentioned due to architecture
> decisions.
>
> What am I doing wrong?
Can't say without some code snippet... anyway, have you tried using 
QWidget::setVisible(bool) instead of removing the widgets from the layout?!

HTH, René
-- 
René Reucher
rene.reucher@xxxxxxxxxxxxx
http://www.batcom-it.net/

If they can make penicillin out of moldy bread, they can sure make
something out of you.
                -- Muhammad Ali

_______________________________________________
Qt-interest mailing list
Qt-interest@xxxxxxxxxxxxx
http://lists.trolltech.com/mailman/listinfo/qt-interest

<Prev in Thread] Current Thread [Next in Thread>