[Qt-interest] Sorry for a more C++ based Question
Nathan Carter
nathancarter5 at gmail.com
Tue Mar 17 18:45:33 CET 2009
You cannot mix templates and moc macros.
http://doc.trolltech.com/4.5/moc.html#limitations
Nathan
On Mar 17, 2009, at 1:32 PM, Neel Basu wrote:
> Sorry for a more C++ based Questions
> template <typename T>
> class ComponentContainer : public QList<T*>, public QObject{//
> error: shadows template parm ‘class T’
> Q_OBJECT//error: declaration of ‘class T’
> I see the above mentioned errors when compiling the above code.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090317/d5993d02/attachment.html
More information about the Qt-interest-old
mailing list