|
From: | Sven Hazejager |
Subject: | Re: [paragui-users] Problem deleting widget |
Date: | Wed, 10 Jul 2002 23:17:44 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1a) Gecko/20020611 |
Andrew Ford wrote:
In general, a widget's children are deleted when the parent is deleted. Assigning a widget to be the child of another widget tranfers ownership of the child widget. Does this make sense with regards to your program? Andrew.
Well, this is indeed interesting. But how is this parent-child relation established? If I do something like this:
PG_Widget *parent = new PG_Widget(...); PG_Widget *child = new PG_Widget(parent, ...); Does that mean that delete parent; Implies destruction of child? I wonder if this is documented somewhere... Thanks, Sven
[Prev in Thread] | Current Thread | [Next in Thread] |