QMetaObject::connectSlotsByName: No matching signal
-
Hi,
I couldn't find anything that helps me to fix my bug,can you please suggest me on this@shivaVMC stateChanged signal has a different parameter than the one your using:
connect(&m_sockUdp, SIGNAL(stateChanged(QAbstractSocket::SocketError)),this,SLOT(mSltOnTCPStateChanged(QAbstractSocket::SocketState)));
Look once more.
-
-
@shivaVMC You don't need to register anything as you're not using queued connection. Simply use the correct parameter type for the signal...
@jsulm said in QMetaObject::connectSlotsByName: No matching signal:
@shivaVMC You don't need to register anything as you're not using queued connection. Simply use the correct parameter type for the signal...
Oh, missed that...
-
I m not able to fix it....I need your support
connect(&m_sockUdp,SIGNAL(readyRead()),this,SLOT(mSltOnTCPDataReceivedFromClient()));
connect(ui->btnConnect,SIGNAL(clicked()),this,SLOT(mSltOnBtnConnectClick()));connect(&m_sockUdp, SIGNAL(stateChanged(QAbstractSocket::SocketError)),this,SLOT(mSltOnTCPStateChanged(QAbstractSocket::SocketState)));
Above 3 statement of code are contiguous in my function,at 3rd connect statement I m faccing issue ...
In SIGNAL stateChanged what will be the correct parameter? -
I m not able to fix it....I need your support
connect(&m_sockUdp,SIGNAL(readyRead()),this,SLOT(mSltOnTCPDataReceivedFromClient()));
connect(ui->btnConnect,SIGNAL(clicked()),this,SLOT(mSltOnBtnConnectClick()));connect(&m_sockUdp, SIGNAL(stateChanged(QAbstractSocket::SocketError)),this,SLOT(mSltOnTCPStateChanged(QAbstractSocket::SocketState)));
Above 3 statement of code are contiguous in my function,at 3rd connect statement I m faccing issue ...
In SIGNAL stateChanged what will be the correct parameter?@shivaVMC
"In SIGNAL stateChanged what will be the correct parameter?" - why don't you read the documentation? I even posted a link to it here.connect(&m_sockUdp, SIGNAL(stateChanged(QAbstractSocket::SocketState)),this,SLOT(mSltOnTCPStateChanged(QAbstractSocket::SocketState)));
-
@shivaVMC
"In SIGNAL stateChanged what will be the correct parameter?" - why don't you read the documentation? I even posted a link to it here.connect(&m_sockUdp, SIGNAL(stateChanged(QAbstractSocket::SocketState)),this,SLOT(mSltOnTCPStateChanged(QAbstractSocket::SocketState)));
-
Hi,
I m not able to enter into "if" condition(first if condition),can you please suggest on the below code where I m going wrong.bjProtocol.mPktRegRead(a_nAddress,byArrSendPkt); //Its entering into this mPktRegRead funtion and return value is fine qDebug()<<"Send Pkt count ===="<<byArrSendPkt.count(); //this debug is also okay
can you please help on this below lines where I m doing wrong
m_SockUdp_ReagWrt.writeDatagram(byArrSendPkt,hostIp,60014); if(m_sockUdpRegRd.waitForReadyRead(SOCKET_CMND_TIMEOUT_IN_MSEC)){ if( m_sockUdpRegRd.hasPendingDatagrams() ) { //statements } //statemnets }
-
Hi,
I m not able to enter into "if" condition(first if condition),can you please suggest on the below code where I m going wrong.bjProtocol.mPktRegRead(a_nAddress,byArrSendPkt); //Its entering into this mPktRegRead funtion and return value is fine qDebug()<<"Send Pkt count ===="<<byArrSendPkt.count(); //this debug is also okay
can you please help on this below lines where I m doing wrong
m_SockUdp_ReagWrt.writeDatagram(byArrSendPkt,hostIp,60014); if(m_sockUdpRegRd.waitForReadyRead(SOCKET_CMND_TIMEOUT_IN_MSEC)){ if( m_sockUdpRegRd.hasPendingDatagrams() ) { //statements } //statemnets }
@shivaVMC said in QMetaObject::connectSlotsByName: No matching signal:
if( m_sockUdpRegRd.hasPendingDatagrams()
Why do you need this if? After waitForReadyRead() you know that there is something to read.
-
Hi,
I m not able to enter into "if" condition(first if condition),can you please suggest on the below code where I m going wrong.bjProtocol.mPktRegRead(a_nAddress,byArrSendPkt); //Its entering into this mPktRegRead funtion and return value is fine qDebug()<<"Send Pkt count ===="<<byArrSendPkt.count(); //this debug is also okay
can you please help on this below lines where I m doing wrong
m_SockUdp_ReagWrt.writeDatagram(byArrSendPkt,hostIp,60014); if(m_sockUdpRegRd.waitForReadyRead(SOCKET_CMND_TIMEOUT_IN_MSEC)){ if( m_sockUdpRegRd.hasPendingDatagrams() ) { //statements } //statemnets }