hi every body
my problem in displaying array of hex, the qDebug displays only first 5 characters and treated the sixth charterer as null and it doesn't display the rest.how can i display full array ???
quint64 index =0;
char CMD[100];
CMD[index++]=0x57;
CMD[index++]=0x58;
CMD[index++]=0x10;
CMD[index++]=0x11;
CMD[index++]=0x21;
CMD[index++]=0x00;
CMD[index++]=0x00;
CMD[index++]=0x00;
CMD[index++]=0x00;
CMD[index++]=0x00;
CMD[index++]=0x00;
CMD[index++]=0x00;
CMD[index++]=0x00;
qDebug()<<"CMD"<<(QString::fromStdString(CMD).toAs cii().toHex());
output is only:
"5758101121"
Bookmarks