使用qt5昼以上版本,使用如下程序进行遍历,找到可用的品
foreach (const QSerialPortInfo &info QSerialPortInfo::availablePorts())