关于QObject::connect: Cannot queue arguments of type"..."
来源:互联网 发布:mac怎么写入移动硬盘 编辑:程序博客网 时间:2024/06/13 21:52
输出窗口报的是
QObject::connect: Cannot queue arguments of type 's_MSGBoxInfo'
(Make sure 's_MSGBoxInfo' is registed using qRegisterMetaType().)
网上搜了一下相关的解决办法:connect时添加参数Qt::DirectConnection,以保证其不被放入信号队列,从而达到想要的效果,但这种办法不一定能解决该问题,因为QUuid类型是Qt的基本类型,是可以作为信号参数使用的,但此处却提示它并不能作为信号参数,所以根本问题不是Qt::DirectConnection所能解决的。
可在使用前注册该类型即可
qRegisterMetaType<s_MSGBoxInfo>("s_MSGBoxInfo");
0 0
- QObject::connect: Cannot queue arguments of type
- 关于QObject::connect: Cannot queue arguments of type"..."
- 关于QObject::connect: Cannot queue arguments of type"..."
- [Qt]QObject::connect: Cannot queue arguments of type 'QString&'
- QObject::connect: Cannot queue arguments of type 'XXX'
- Qt: QObject::connect: Cannot queue arguments of type 'XXX'
- QObject::connect: Cannot queue arguments of type 'cv::Mat'
- QObject::connect: Cannot queue arguments of type 'string'
- QObject::connect: Cannot queue arguments of type 'QList<QMap<QString,QString> >'
- QObject::connect: Cannot queue arguments of type "xxx",(Make sure "xxx" is registed using qRegisterM
- 信号槽传递非Qt库类型参数时,出现QObject::connect: Cannot queue arguments of type 'QUuid'(Make sure 'string' is regi
- Qt:QtQuick Cannot queue arguments of type 'QQmlChangeSet'
- 关于QObject::connect中函数参数
- 关于QObject::connect函数参数问题
- Cannot infer type arguments for PageImpl<>
- QT信槽编程,QObject::connect: Cannot connect (null)报错的两种成因
- QObject::connect 出错
- cannot assign value of type
- Error occured processing XML 'Cannot find class [springmvc.extention.BeanArgumentResolver]'.
- Curator-Framework开源Zookeeper快速开发框架介绍
- Swift初窥----语法入门
- 自建系统海外邮件退信怎么办,用邮件中继。
- 公司电脑上关于自己的文档分类规划(些许图文说的明白)
- 关于QObject::connect: Cannot queue arguments of type"..."
- android 获取屏幕分辨率
- ejb使用EntityManager调用数据库的配置
- FZU--2150--Fire Game【BFS】
- 初识Shell
- Phoenix Framework中为Tree的每个节点设置不同图标的方法
- 我的ac自动机模板
- HDOJ 题目18651sting(大数 斐波那契)
- 小卧室的装修设计需要注意的须知