I have typedef in my code & I wanted to use this in connect function so I register this new data type.
Qt Code:
  1. typedef std::vector< std::vector<int> > myData;
  2. qRegisterMetaType<myData>("myData");
To copy to clipboard, switch view to plain text mode 
Qt Code:
  1. connect(this, SIGNAL(startFetchingRecordsInThread(myData&)), this, SLOT(startFetchingRecords(myData&))); //is throwing below error
To copy to clipboard, switch view to plain text mode 
QObject::connect: Cannot queue arguments of type 'myData&'
(Make sure 'myData&' is registered using qRegisterMetaType().)
When I remove & (pass by reference) from argument
SIGNAL(startFetchingRecordsInThread(myData))
Its working fine.
Is there some thing I missed here ??