摘要:
Qt中对读写设备的支持力度很大,其都继承与QIODevice类,其中有几个方法是非常值得注意的,不管是在用原始的serial port进行通信还是使用网络的TCP/IP 或者UDP或者HTTP等协议时,其实用的方法其实都差不多,主要的有read(int size),readall(),readLine(const char* ,int size),canReadLine(),bytesAvailable(),readData(),write(),flush(),waitBytesWritten(int msec),readData(char* ,int size),bytesToWritt.. 阅读全文
posted @ 2014-04-04 18:42
戈登.金斯利
阅读(876)
评论(0)
推荐(0)

浙公网安备 33010602011771号