在线程间发送自定义消息时,出现如下问题:
QObject::connect: Cannot queue arguments of type 'ThreadSignal' (Make sure 'ThreadSignal' is registered using qRegisterMetaType().)
解决方法如下,在代码中添加:
qRegisterMetaType<ThreadSignal>("ThreadSignal");