I think I'd prefer to use a QByteArray rather than a QString, considering the binary nature of the file, and you can see from the documentation how to read into a QByteArray.

You can then even convert the tags, such as 'ANPK' to quint32 and compare them that way instread, which is properly what the original designer intended, or cast to an appropriate struct.