[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: trivial KDE program crashing
From: George Petri <baitfish () bigpond ! com>
Date: 2001-09-09 6:42:28
[Download RAW message or body]
> On Sunday 09 September 2001 11:19, David Watson wrote:
> > I'm pretty sure that all QWidgets need to be allocated on the heap, not
> > the stack, because of the auto-deletion stuff - your KApplication deletes
> > the KMainWindow (that's why you pass a pointer). Since you dynamically
> > allocated your main window in the non-crashing version, it's fine when it
> > gets deleted.
1. Does this mean that I should allocate KApplication's on the heap as well,
instead of locally?
2. Since KDE widgets are derived from QT, do _all_ KDE widgets need to be
allocated on the heap?
Thanks again,
George
>> 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