m_pUdpSocket->bind(m_sendSocket->localPort(), QAbstractSocket::ShareAddress);
参考:Qt 5.5 未绑定到端口 - Javaer101