I want to pass my objects by reference to their base class:
connect(pCaller, SIGNAL(sig2(const IBase &)), pReceiver, SLOT(slot2(const IBase &)));
But I'm getting run-time error:
QObject::connect: Cannot queue arguments of type 'IBase' (Make sure 'IBase' is registered using qRegisterMetaType().)
Therefore I add:
qRegisterMetaType<IBase>("IBase");
And getting a compile-time error:
error C2259: 'IBase': cannot instantiate abstract class
What's the best way to resolve this issue ?