What about QByteArray? While reading file you can fill the instance of it ...