[Qt-interest] Removing widget from layout

Ender EREL erelender at yahoo.com
Fri Feb 6 15:58:30 CET 2009


wim.delvaux at adaptiveplanet.com wrote:

> 
> Also I think remove just takes the widgets out of the grid's layout but does 
> not dispose of them.  SO I think they just still exist. Hence the are 
> reparented to 0 and hence they paint as toplevel widgets and hence on top of 
> the widget in the grid.
> 
> W

I think this is not the case. The widgets removed from a layout are not 
reparented since their parent is not the layout, it is the parent widget 
of the layout. Removing just stops the widgets from being managed by the 
layout and they stay at their position regardless of any layout changes.

-- 
ender -  -



More information about the Qt-interest-old mailing list