Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
6.6.2
-
None
Description
If you try to add Q_OBJECT and Q_SIGNAL in a template specialization class, MOC does not generate meta code and silently fails.
QObject meta code symbols will be not found by the compiler.
A workaround is to define a type for the template specialization (with using or typedef) and to replace the class declaration with the explicit type only with the macro Q_MOC_RUN.