PDA

View Full Version : QFile, QDataStream reading binary data



yren
14th April 2009, 22:45
All the read functions from QFile, and the readRawData from QDataStream have their receiving buffers defined as type char*. The binary data byte has type "unsigned char". How can I read binary data from files?

Thanks!

spirit
15th April 2009, 07:34
read this (http://www.qtcentre.org/forum/f-qt-programming-2/t-how-to-write-a-qlist-into-a-binary-file-19877.html/?highlight=QDataStream), maybe it helps you.