vieraci
4th November 2009, 12:19
In the following code example, I'm comparing the text in a QPlainTextEdit (txtNotes) with the text from a QSqlRecord (rec)
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 ?
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 ?