Home > other >  About uchar in qt
About uchar in qt

Time:11-30

Uchar values range in qt is - 128-127? I c=0 x9f uchar, for example, the result is a negative,

CodePudding user response:

Uchar values range is 0 to 255, uchar c=0 x9f must cross a line, you can use the int or char c=0 x9f

CodePudding user response:

Typedef uchar
Convenience typedef for unsigned char.

Uchar values range is 0 to 255. 0 x9f value is 159, is a normal value.
If the 0 x120 measures how the value of the assignment of uchar variable will only be a problem.
  • Related