在线程间发送自定义消息时,出现如下问题:
QObject::connect: Cannot queue arguments of type 'ThreadSignal'
(Make sure 'ThreadSignal' is registered using qRegisterMetaType().)
解决方法如下,在代码中添加:
qRegisterMetaType<ThreadSignal>("ThreadSignal");
在线程间发送自定义消息时,出现如下问题:
QObject::connect: Cannot queue arguments of type 'ThreadSignal'
(Make sure 'ThreadSignal' is registered using qRegisterMetaType().)
解决方法如下,在代码中添加:
qRegisterMetaType<ThreadSignal>("ThreadSignal");
转载于:https://www.cnblogs.com/liuyunfeifei/archive/2012/12/18/2823624.html