[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Problem with QT
From: Jimmy Gilles <jimmygilles () gmail ! com>
Date: 2005-10-19 15:43:25
Message-ID: 200510191743.28844.jimmygilles () gmail ! com
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hello
I need an expert in qt for a question :-)
I have created a class :
class KgpgKey : public QObject
{
...
}
typedef QPointer<KgpgKey> KgpgKeyPtr;
class KgpgListKeys : public QList<KgpgKeyPtr>
{
public:
KgpgListKeys();
KgpgListKeys(KgpgKeyPtr key);
KgpgListKeys(const KgpgListKeys &other);
KgpgListKeys(const QList<KgpgKeyPtr> &other);
KgpgListKeys operator+(const KgpgListKeys &other) const;
KgpgListKeys &operator<<(KgpgKeyPtr key);
KgpgListKeys &operator<<(const KgpgListKeys &l);
};
I use KgpgListKeys like that :
KgpgListKeys list;
KgpgKeyPtr key = new KgpgKey();
list << key;
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.
thank you for you help
bye
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDVmmgRYBj/6pA3RoRAgxXAKCbne5HyCKhxRWBcciTjtFynxMUSACgrpsg
Eg2NME/GZc4E9Gi1YCwXKFc=
=Ee0Q
-----END 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