[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-games-devel
Subject: Re: [Kde-games-devel] MDI programming and QList
From: Burkhard Lehner <Burkhard.Lehner () gmx ! de>
Date: 2002-01-27 14:59:55
[Download RAW message or body]
Hello, Cristian!
The answer to your question is "depends" :-)
You will have no problems if you are storing pointers to the objects in the
list. But if you store copies of the objects, then all the methods and
attributes of the subclasses will be lost.
So, since Qt 3.0 doesn't have QList any more, you can use QPtrList
<baseclass>, or you can use QValueList <baseclass*>. Do not use QValueList
<baseclass>.
Bye,
Burkhard
_________________________________________________________
Burkhard Lehner Tel: (0631) 10363
Pfaffenbergstraße 101 Fax: (0631) 3105215
67663 Kaiserslautern EMail: Burkhard.Lehner@gmx.de
WWW: http://www.burkhardlehner.de/
_______________________________________________
kde-games-devel mailing list
kde-games-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-games-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic