当前位置:网站首页>【Qt】 No such slot...,No such signal
【Qt】 No such slot...,No such signal
2022-08-09 14:43:00 【喵喵锤锤你小可爱】
绑定槽函数的时候有参数的槽和信号需要指定参数类型的,或者说参数表:
正确
connect(&rev,SIGNAL(on_initBDPMat(int,int,int)),this,SLOT(rec_initBDPMat(int,int,int)));
connect(&rev,SIGNAL(on_BDPpacket(BDP*)),this,SLOT(rec_BDPpacket(BDP*)));
错误:
connect(&rev,SIGNAL(on_initBDPMat()),this,SLOT(rec_initBDPMat()));
connect(&rev,SIGNAL(on_BDPpacket()),this,SLOT(rec_BDPpacket()));
自己类比,代码是自己项目顺手拿过来的。
边栏推荐
- YOLOv5网络详解
- Simulink simulation pid control servo system
- spacedesk-笔记本、平板、扩展屏幕-解决平板字体太小的问题
- ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions unless TOP, OFFSET, or FOR XML is also specified
- 论文笔记CIRS
- Analysis of select principle in golang
- 深圳堡垒机厂家有哪些?重点推荐哪家?
- C语言程序设计笔记(浙大翁恺版) 第二周:计算
- Computer Graphics From Scratch - Chapter 5
- R7 6800H标压处理器+RTX 3050独显 无畏Pro15锐龙版高能开卖
猜你喜欢

C语言程序设计笔记(浙大翁恺版) 第一周:程序设计与C语言

下班后用微信工作发病是否属于工伤?法院这样判

After reading the "Redis In-depth Notes" compiled by Tencent bosses in 90 days, I worshipped on the spot.

结合实际聊聊电平转换电路(常用电平转换电路总结)

易基因|作物育种:DNA甲基化在大豆优良品种培育中的作用研究成果

Zero Time Technology | Nomad cross-chain bridge theft of 180 million US dollars incident analysis

OpenCV笔记整理【视频处理】

刷完这174道Android开发面试题,搞懂所有技术栈

Regular expression combat: the latest Douban top250 crawler super detailed tutorial

基于FPGA的FIR滤波器的实现(2)—采用kaiserord & fir2 & firpm函数设计
随机推荐
凡尔赛一波:凭这份阿里面试突击指南,我已经拿了9张Offer
golang中的select原理解析
【软考】2022年上半年软考过啦
从零开始Blazor Server(9)--修改Layout
.NET现代应用的产品设计 - DDD实践
After reading the "Redis In-depth Notes" compiled by Tencent bosses in 90 days, I worshipped on the spot.
Architect's learning experience summary
太阳能小屋的设计
Hudi Spark-Shell 实战
Redis 面试题
Selenium - 如何用xpath快速定位路径?
一款翻译机背后的全球经济浪潮
C语言程序设计笔记(浙大翁恺版) 第二周:计算
VMWare does not use easy install, install ISO manual manually
论文笔记CIRS
VMWare不使用简易安装,手动安装ISO操作手册
BVT测试(版本验证测试、冒烟测试)和Daily build
C语言程序设计笔记(浙大翁恺版) 第四周:循环
Detailed firewall firewall
The title icon favicon.icon on the browser tab