See the documentation on QFile `Note for the Windows Platform`:

    Qt will translate the end-of-line characters if you pass QIODevice::Text to mode.

This should be abstracted away for you.