I have created new thread and created object of QTCPSocet.

{
m_pSocket=new QTcpSocket();
m_pSocket->connectToHost(m_sIPAdress,m_nPort);
connect(m_pSocket,SIGNAL(readyRead()),this,SLOT(So cketDataReceived()),Qt::QueuedConnection);

}

Server Sends data in UTF8 format.

m_qstrNextMesssage is QString

void SocketReader::SocketDataReceived()
{
while (m_pSocket->bytesAvailable())
{
m_qstrNextMesssage.append(m_pSocket->readAll());

emit DataReceived(m_qstrNextMesssage);
}
m_qstrNextMesssage.clear();
}

}



If my server sends the data within 1 sec then I am not getting the readyRead() signal.

I saw that this issue has been faced by many people.

But still I am facing the issue.

!!! Can you guys please help me !!!