I am trying to display a number using QDebug in the Hex format. Below is the code which I have written. It is working but the output has string contents enclosed in double quot
You could format string first:
int myValue = 0x1234; QString valueInHex= QString("%1").arg(myValue , 0, 16); qDebug() << "value = " << valueInHex;