[Interest] QSharedPointer and qRegisterMetaType

Carsten Schneemann cschneemann at yahoo.com
Fri Jan 23 18:25:03 CET 2015

Hi Igor,

if you're using the code quoted in your message then you have simply registered your pointer class with the wrong type name. If you use
then things should work.

You should also be careful with typedefs like "SharedInt" for your pointer class. Qt's meta type system is largely based on string comparison, so even if a type is just an alias of another, moc might not have taken this into account and you will get an "incompatible sender/receiver arguments" warning at runtime.


More information about the Interest mailing list