有时候需要将一段ASCII转换为数值进行传输(比如串口)

    QString str=codeEdit->toPlainText();
    QVector<uint>v=str.toUcs4();
    foreach(int a,v)
    {
        qDebug()<<a;
    }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2021-10-24
  • 2022-12-23
  • 2021-08-12
  • 2021-07-16
相关资源
相似解决方案