nfo
nfo

Reputation: 647

How to write newline in qt

I like to write linux newlines, under windows, but QT automatically convert \n to \r\n based on the platform.

Any hints ?

Upvotes: 2

Views: 747

Answers (1)

Assuming you speak of QFile-s, you might pass an explicit OpenMode to open which has its QIODevice::Text bit cleared.

Upvotes: 4

Related Questions