码迷,mamicode.com
首页 > Web开发 > 详细

Qt信号槽传递自定义类型参数(qRegisterMetaType)

时间:2018-04-25 20:03:40      阅读:363      评论:0      收藏:0      [点我收藏+]

标签:nec   register   include   信号槽   sig   定义类   detail   clu   sign   

1 #include <QMetaType>//记得包含这个头文件
2 //my_type是我自己定义的类型
3 qRegisterMetaType<my_type>("my_type");
4 connect(xx,SIGNAL(xx(my_type)),xx,SLOT(xx(my_type)));

 

https://blog.csdn.net/d_a_r_k/article/details/78414482

Qt信号槽传递自定义类型参数(qRegisterMetaType)

标签:nec   register   include   信号槽   sig   定义类   detail   clu   sign   

原文地址:https://www.cnblogs.com/findumars/p/8946694.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!