转自CSDN:https://blog.csdn.net/qq575787460/article/details/8469240

例如以C++标准库中string做参数,则会出现:

QObject::connect: Cannot queue arguments of type 'string'

(Make sure 'string' is registed using qRegisterMetaType().)

 

解决方案:

可以再main中加入:

qRegisterMetaType<string>("string");注册该类型
---------------------
作者:coderchenjingui
来源:CSDN
原文:https://blog.csdn.net/qq575787460/article/details/8469240
版权声明:本文为博主原创文章,转载请附上博文链接!

相关文章:

  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
相关资源
相似解决方案