Qt 5.2: QLocalServer receiving duplicated readyRead signals
问题 I'm puzzled with a problem designing a simple QLocalServer-QLocalSocket IPC system. The QLocalServer waits for a new connection and connect the signals to the proper slots. void CommandProcessor::onNewConnection() { QLocalSocket* pLocal = _server->nextPendingConnection(); connect(pLocal,SIGNAL(disconnected()),this,SLOT(onSocketDisconnected())); connect(pLocal,SIGNAL(readyRead()),this,SLOT(onSocketReadyRead())); connect(pLocal,SIGNAL(error(QLocalSocket::LocalSocketError)),this, SLOT