Hi.

After reading from a serial port I have a bunch of binary data in a char buffer.

Qt Code:
  1. char buff[n];
  2. int bytesRead = port->read(buff, n);
To copy to clipboard, switch view to plain text mode 

I want to scrutinize the data byte by byte and display each byte in a hexadecimal format like this: 0x01 0x1F 0xFE ...

Can you please point me in the right direction?