
QT的串口概述Qt Serial Port 模块中只有两个类: QSerialPortInfo 和 QSerialPort。QSerialPortInfo 类作用:获取串口的信息类包含如下:QString portName()//串口名称,如 COM1、 COM2QString description()//串口的文字描述bool isNull()//串口是否为空,若返回值为 true,则这个串口无效QString manufacturer()//制造商quint16 productIdentifier()//产品 IDQString serialNumber()//序列号QSerialPort 类作用:访问具体串口方法/值、也可以称为调用具体串口;通过setPort()