[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Problem with QT
From: Thiago Macieira <thiago () kde ! org>
Date: 2005-10-21 22:44:45
Message-ID: 200510212044.45639.thiago () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Michael Pyne wrote:
>On Friday 21 October 2005 11:42, Ivor Hewitt wrote:
>> On Wednesday 19 October 2005 16:43, Jimmy Gilles wrote:
>> > It works very well but my problem is that when "list" is deleted,
>> > keys that are in this list are not deleted. Why ?
>> > I use QPointer to automaticaly delete keys but it doesn't work.
>>
>> Destroying a QPointer does not destroy the object it points to.
>
>And for a perhaps more useful answer, add a destructor for KgpgListKeys
> that iterates over its keys and deletes them. You might not be able to
> use foreach() since the dtor will be iterating over itself but
> something like this would work:
Or simply call qDeleteAll.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
1. On frumscafte, hwonne time_t wæs náht, se scieppend þone circolwyrde
wundorcræftlíge cennede and seo eorðe wæs idel and hit wæs gód.
[Attachment #5 (application/pgp-signature)]
>> 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