Thanks for the reply!
I apologize for my presumption... you are right!
But I told so, since a friend of mine has the same problem.
We found yesterday a possible workaround of this problem... It seems that connecting the two signals bytesWritten and readyRead, the signal bytesWritten is emitted:
socket
= new QBuffer(&pckBuffer,
this);
connect(socket,SIGNAL(bytesWritten(qint64)),pCl,SLOT(SendPck(qint64)));
connect(socket,SIGNAL(readyRead()),this,SLOT(dummy()));
socket = new QBuffer(&pckBuffer,this);
connect(socket,SIGNAL(bytesWritten(qint64)),pCl,SLOT(SendPck(qint64)));
connect(socket,SIGNAL(readyRead()),this,SLOT(dummy()));
To copy to clipboard, switch view to plain text mode
where dummy can be also a slot that does nothing, just like this:
void classname::dummy()
{
}
void classname::dummy()
{
}
To copy to clipboard, switch view to plain text mode
With this configuration, the code works for me and also for my friend.
We don't know exactly why, but the code really works!!! Maybe we will check the reason in the Qt source, as suggested by you! 
Best Regards,
Alessandro
Bookmarks