例如以C++标准库中string做参数,则会出现:
QObject::connect: Cannot queue arguments of type 'string'
(Make sure 'string' is registed using qRegisterMetaType().)
解决方案:
可以再main中加入:
qRegisterMetaType<string>("string");注册该类型
例如以C++标准库中string做参数,则会出现:
QObject::connect: Cannot queue arguments of type 'string'
(Make sure 'string' is registed using qRegisterMetaType().)
解决方案:
可以再main中加入:
qRegisterMetaType<string>("string");注册该类型