hi all
i am creating an application that received and sends data thru serialport.pls see the below code
Qt Code:
  1. if(comport->bytesAvailable())
  2. {
  3. long count =comport->bytesAvailable();
  4. QByteArray comdata=comport->read(count);
  5. comdata=comdata.toHex();
  6. qDebug()<< comdata;
  7. }
To copy to clipboard, switch view to plain text mode 
It displays the ascii value of sent data and displays the hexadecimal value,but i need them
in array of hexadecimal like below
byte data[];
data[0]=0x01;
data[0]=0xff;
so that i can check the arrays each position easily ??jus im tired by searching
can any one help me??
thanks in advance