Hi
I wish to write something onto a data file. I thought of using QDataStream, but it tens to give me wrong output.
Qt Code:
//out << QString("the answer is"); // serialize a string int x = 54; out << (qint32)x; out.device()->close();To copy to clipboard, switch view to plain text mode
I was expecting an output of 54. Itself it shouwing me its char value = 6; even with other numbers.
Please let me know how to address this problem
Thanks
Regards
Alok
Bookmarks