[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: trivial KDE program crashing
From:       Martijn Klingens <mklingens () yahoo ! com>
Date:       2001-09-09 21:41:11
[Download RAW message or body]

On Sunday 09 September 2001 19:56, Guillaume Laurent wrote:
> On Sunday 09 September 2001 16:48, Martijn Klingens wrote:
> > Qt objects that have a 0 parent are top-level windows. There is a special
> > Qt flag Qt::WDestructiveClose that specifies that closing such a window
> > should auto-delete the widget (and hence its children).
>
> This applies to widgets only. A QObject is not necessarily a widget. If you
> create a QObject with no parent, it's up to you to destroy it.

Eeeeew.... good that you say that, since Qt's normal auto-delete behaviour 
applies to QObjects as well.

I didn't know this, thanks for pointing out!

Martijn
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic