qt UDP(通过pushbutton发送信息)

在客户端的UI界面拖了一个pushbutton和textdit。 主要代码如下: 发送端: int32_t udpcli::udpSend() { auto uSocket = new QUdpSocket; QString sendText=ui->textEdit->toPlainText(); //获取文本信息 uSocket->writeDatagram(send
相关文章
相关标签/搜索