【Qt】 No such slot...,No such signal

When binding the slot function, the slot and signal with parameters need to specify the parameter type , or the parameter table:
Insert picture description here
correct


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*)));

error:


connect(&rev,SIGNAL(on_initBDPMat()),this,SLOT(rec_initBDPMat()));



    connect(&rev,SIGNAL(on_BDPpacket()),this,SLOT(rec_BDPpacket()));

By my own analogy, the code was taken from my own project.

Guess you like

Origin blog.csdn.net/qq_42820594/article/details/108055989