摘要:
1:要应用socket,首先得在 .prc 文件中增加:QT += network2:#include <QtNetwork/QUdpSocket>3:发送方,代码例如:connect(sendButton,SIGNAL(clicked()),this,SLOT(broadcastDatagram())); void broadcastDatagram() { QString temp="...................";QByteArraydatagram;datagram.append(temp);udpSocket->writeDatagra 阅读全文
posted @ 2012-12-26 23:43
家窝敏的博客
阅读(614)
评论(0)
推荐(0)

浙公网安备 33010602011771号