Conversion between QByteArray and Signed Integer (int)
About the decimal to hexadecimal signed conversion method:
hexadecimal Converts to a signed decimal number (-128–127)
The first bit is used as the sign, 0 is a positive number and 1 is a negative number.
For…