Qt Code:
  1. int size = f.size();
  2.  
  3. QByteArray bytes = f.readAll();
  4.  
  5. qDebug() << bytes; //outputs ""MZP
  6.  
  7. qDebug() << bytes.toHex(); //Same output :(
To copy to clipboard, switch view to plain text mode