Hi, all,

I have a problem of QByteArry.
When I take it to store a data, a strange binary file is outputted.
A basic code is like as following.
Qt Code:
  1. QString fname ="test1.db";
  2. QFile ext_file(fname);
  3. ext_file.open(QIODevice::WriteOnly);
  4. QDataStream out(&ext_file);
  5. static const char mydata[] = { 0x74,0x68,0x65 };
  6. QByteArray data = QByteArray::fromRawData(mydata,sizeof(mydata));
  7. out<<data;
To copy to clipboard, switch view to plain text mode 

However, I got a strange extra data on the head of data stream.

Qt Code:
  1. 0000 0003 7468 65
To copy to clipboard, switch view to plain text mode 

Why does the output data have 0000 0003 ?
Could you please help me.
Thank you very much.