[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: trivial KDE program crashing
From: Malte Starostik <malte () kde ! org>
Date: 2001-09-09 18:33:22
[Download RAW message or body]
Am Sunday 09 September 2001 16:52 schrieb Rik Hemsley:
> #if George Petri
>
> > 1. Does this mean that I should allocate KApplication's on the heap as
> > well, instead of locally?
>
> No. KApplication is not a QWidget.
>
> > 2. Since KDE widgets are derived from QT, do _all_ KDE widgets need to be
> > allocated on the heap?
>
> Yes.
An exception are parent-less widgets which you need to destroy yourself anyway. If \
they have a short lifetime, it's okay to have them on the stack. Qt's autodeletion \
just deletes all QObjects when their parent is deleted - if there is \
one.
--
Malte Starostik
PGP: 1024D/D2F3C787 [C138 2121 FAF3 410A 1C2A 27CD 5431 7745 D2F3 C787]
0109090054.f890s6S12615@smtp0
> > 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