bnilsson
31st July 2009, 19:51
I am saving my text from a QPlaintTextEdit like this:
QTextStream out(&file);
out << fTextView->toPlainText();
Now if I want to control wether the file should be written in Unix or PC text format, are there any "higher-level" tools or settings to do this, or do I just load the text into a QString and search and modify \n to \r\n or vice versa by my own code?
QTextStream out(&file);
out << fTextView->toPlainText();
Now if I want to control wether the file should be written in Unix or PC text format, are there any "higher-level" tools or settings to do this, or do I just load the text into a QString and search and modify \n to \r\n or vice versa by my own code?