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
If one is not tied to use streaming operators, can go with the plain old %x and use qDebug with formatting string:
%x
int hexnum = 0x56; qDebug("My hex number is: %x", hexnum);
which will yield "My hex number is: 56", without quotes.