[Interest] Read structure from binary file

Duane duane.hebert at group-upc.com
Thu Mar 16 15:53:10 CET 2017


How can I use Qt to read from a binary file to a structure?

I'm trying to replace

Foo foo;
fread(foo,sizeof(FOO);

I've tried QFile::read() but it wants a char buffer.




More information about the Interest mailing list