Qt出现QObject::connect: Cannot queue arguments of type '******'的解决方法

一般出现这种情况都是自定义的类型进行型号槽连接的时候出现的,使用

假设自定义的类型是MyClass

使用qRegisterMetaType<MyClass>("MyClass");注册之后就可以正常的进行信号和槽连接

原文地址:https://www.cnblogs.com/-wang-cheng/p/4962257.html