Hi, I'm trying to create a QString which is a hexadecimal number with its letter digits in Capitals instead of small caps, how can it be done?
QString( " %1" ).arg( 15, 1, 16 )
yields f
and I'd like F
views:
38answers:
1
+3
A:
By converting the string to upper case:
QString( " %1" ).arg( 15, 1, 16 ).toUpper();
This returns an uppercase string. The method used to be called upper() in qt3.
dantje
2010-06-18 23:12:15
I guess that should be `toUpper()`.
Job
2010-06-19 10:11:51
Right you are. Edited.
dantje
2010-06-20 07:37:47