需要在portname前添加\\\\.\\这样就可以了!!

例如
QString portname;
portname.append("\\\\.\\").append(ui->SerialCom->currentText());
SerialCom->setPortName(portname);

相关文章:

  • 2021-09-18
  • 2022-12-23
  • 2021-09-20
  • 2021-12-04
  • 2021-12-27
  • 2022-01-13
  • 2022-12-23
  • 2021-06-19
猜你喜欢
  • 2021-08-04
  • 2022-12-23
  • 2021-04-20
  • 2021-09-10
  • 2021-09-03
  • 2021-10-06
  • 2022-12-23
相关资源
相似解决方案