只是因为在编写自定义信号和自定义槽函数时,虽然信号和槽都是带参数的,但是使用connect进行连接时,只能在函数中填写参数的数据类型而不能将形参名列出 正确格式:connect(form,SIGNAL(sendListGot(const QString)),this,SLOT(getListGot(const QString))); 错误格式:connect(form,SIGNAL(sendListGot(const QString s...
connect(Device::getInstance(), &Device::sig_sendData,this, &Tool::slot_receiveData); 旧语法写信号/槽连接,比如: connect(Device::getInstance(), SIGNAL(sig_sendData(QString,int)),this, SLOT(slot_receiveData(QString, int)); 当修改了信号/槽函数其中一个函数的参数类型,而未修改另一个函数的参数类...