[Interest] Text resources

Konrad Rosenbaum konrad at silmor.de
Sun May 15 11:20:57 CEST 2022


Hi,

On 15/05/2022 01:21, Turtle Creek Software wrote:
> The code creates a QString from QFile:readAll(), and the change 
> happens somewhere in that constructor.


Are you opening the QFile with QIODevice::Text per chance? If you remove 
this flag then the QFile should deliver the file as it is stored.

Otherwise the change either happens before the file gets stored into the 
resource or after you read it from the QFile. Hard to say without seeing 
the code.



     Konrad

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20220515/a116715b/attachment.sig>


More information about the Interest mailing list