Qt出现错误QObject::connect: Cannot queue arguments of type ‘QUuid'(Make sure ‘string’ is reg //QObject::connect: Cannot queue arguments of type ‘UINT64’

转自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
版权声明:本文为博主原创文章,转载请附上博文链接!

原文链接: https://www.cnblogs.com/gec258/p/11133318.html

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍

    Qt出现错误QObject::connect: Cannot queue arguments of type 'QUuid'(Make sure 'string' is reg //QObject::connect: Cannot queue arguments of type 'UINT64'

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/298242

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年2月15日 下午7:23
下一篇 2023年2月15日 下午7:24

相关推荐