qt tcp server 的正确姿势
qt 作为桌面应用本来不应该用来做 tcp server的,但是架不住甲方的需求太奇葩,只能忍了。第一版:// 初始化{... m_pTcpServer = new QTcpServer(this); connect(m_pTcpServer, &QTcpServer::newConnection, this, &tcpSer::ConnCli); connect(m_pTcpServer, &QTcpServer::accept