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
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
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。