[Solved] converting data hex value stored in QString to ASCII format

  • I am reading data from the device through serial interface .First I received weird data then I try to convert what I am receiving to hex and it and the output I get is 31204a756c203230313320 , how I can convert this ASCII format?

    QByteArray inComBuffer;
    if (port->bytesAvailable()) {

        QString version=inComBuffer.mid(12,22);


Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.