On terça-feira, 19 de junho de 2012 11.42.10, Peter Kümmel wrote:
> The only big change would be that a moc generated header
> needs to be included:
>
> foo.h:
>
> template<class T>
> struct A : public QObject
> { ...
>
>      // only defined for moc
>      Q_QOBJECT_SPECIALISATION(int>
>
> };
>
> #include "foo.moc.h"

With the macro, there's no need to include the moc output.

Unless that moc.h file is a different one that contains a C++11 extern template
indication only, plus the necessary Q_DECL_IMPORT.

--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to