There is NO 'convert to Hexadecimal', actually.
str
is the hexadecimal representation of the
8447
number.
0x20FF
is just
the literal[
^] you could use in order to specify the number in the source code.
[update]
In order to compare the number represented by the string
str
with an actual
int
value, you have first to convert
str
to integer, using
16
as base. See
"int QString::toInt(bool * ok = 0, int base = 10) const"[
^]
[/update]