In the following code example, I'm comparing the text in a QPlainTextEdit (txtNotes) with the text from a QSqlRecord (rec)
Qt Code:
  1. txtNotes->setPlainText(rec.value("notes").toString());
  2. if (txtNotes->toPlainText() != rec.value("notes").toString())
To copy to clipboard, switch view to plain text mode 

It always evaluates to true, even though the text from either hasn't been edited. My theory is that QPlainTextEdit is altering line feeds. Would this be right ?