摘要:
(1)QUdpSocket接收数据 进入槽后,要用这种方式读取,否则可能会导致不发readyRead()信号 。while(udpSocket->bytesAvailable()){ udpSocket->readDatagram(ch,size);} (2)QTcpSocket删除 一定要用del 阅读全文
摘要:
#include int main() { using namespace std; cout << "HelloWorld" << endl; return 0; } 阅读全文