hi
this is wht i m doing...the data inside is actually a hexadecimal and it give me the int number when i compile...i jux want it to display as hex eg: 0x32
is there a way to do that???
thx so much in advance :)
Printable View
hi
this is wht i m doing...the data inside is actually a hexadecimal and it give me the int number when i compile...i jux want it to display as hex eg: 0x32
is there a way to do that???
thx so much in advance :)
Hi,
use
http://doc.trolltech.com/4.3/qstring.html#arg-10 and set base to 16.
Ginsengelf
try %x or %X
Please don't post the same question more than once.
I would only like to notice that a number is a number - not hexadecimal, not decimal but a number and its internal representation is binary not hexadecimal by the way, so you can't have a "hexadecimal number" - you just have an int and if you want to show it to someone you'll be converting it to a textual representation and the latter can show your number in hexadecimal, decimal, octal, binary or whatever else form you might think of.