^NyAw^
2nd December 2008, 18:40
Hi,
I'm getting this error on my application
QObject::connect: Cannot queue arguments of type 'CModbusResponse&'
(Make sure 'CModbusResponse&' is registered using qRegisterMetaType().)
CModbusResponse is a class that inherits from CModbusMessage. I have registered the classes with "qRegisterMetaType".
The problem is that the connection returns true if "Qt:DirectConnection" is used, but it returns false if "Qt::QueuedConnection" is used.
The classes have their copy constructor.
Thanks,
I'm getting this error on my application
QObject::connect: Cannot queue arguments of type 'CModbusResponse&'
(Make sure 'CModbusResponse&' is registered using qRegisterMetaType().)
CModbusResponse is a class that inherits from CModbusMessage. I have registered the classes with "qRegisterMetaType".
The problem is that the connection returns true if "Qt:DirectConnection" is used, but it returns false if "Qt::QueuedConnection" is used.
The classes have their copy constructor.
Thanks,