[Qt-interest] QList<T> conversion

Gustavo de Sá Carvalho Honorato gustavohonorato at gmail.com
Fri Jan 28 22:58:12 CET 2011


Hi,

is it possible to convert QList<A*> to QList<QObject*>, where A inherits
from QObject? I would like to do this without create a new QList<QObject*>
container and typecasting each element before add into this new one. Is
there any better solution than that?

Thanks,
Gustavo Honorato
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110128/7fd58272/attachment.html 


More information about the Qt-interest-old mailing list