I tried to do this :
connect(this, SIGNAL(signalClicked(int&)), classA, SLOT(doWork(int&)));
But I get the message in the title. So I've explored the internet and I came up with this solution which is not working aswell:
qRegisterMetaType<int&>("Type"); connect(this, SIGNAL(signalClicked(Type)), classA, SLOT(doWork(Type)));
(Error : no matching function for call to ‘qRegisterMetaType(const char[5])’)
Any solutions ? Thanks for your help.