Declaring a template class a metatype in QT
<p>I've been trying to allow my own vector library to be a meta-type in QT, through the tutorials they teach me the <code>Q_DECLARE_METATYPE(class)</code>.  However my class is a template.  I have been searching around and found an undocumented macro <code>Q_DECLARE_METATYPE_TEMPLATE_1ARG()</code>, however I found one bug report on it, and no feedback on whether it was fixed or not.  I've tried using it and it still doesn't register.  The reason is in my <code>Shader</code> class of my game engine, I store uniforms and depending on the uniform, it stores the value as a <code>QVariant</code>. That is where I am running into a problem. Does anyone know how to register templates for <code>QMetatypes</code>?</p>