In the following code example, I'm comparing the text in a QPlainTextEdit (txtNotes) with the text from a QSqlRecord (rec)
Code:
txtNotes->setPlainText(rec.value("notes").toString()); if (txtNotes->toPlainText() != rec.value("notes").toString())
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 ?