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
Another way of doing this would be:
int value = 0xFFFF;
qDebug() << QString::number(value, 16);
Hope this helps.
Edit: To remove the quotes you can cast the number as a pointer, as qt will format that without using quotes. For instance:
int value = 0xFFFF;
qDebug() << (void *) value;
Slightly hackish, but it works.