Hi,
I want to make error message in TextEdit has red color, so I do like this:
QString tag1 = "<font color = 'red'>";
tag1.append(error);
tag1.append("</font>");
read_textEdit->append(tag1);
but when I select that error message in TextEdit, all other message come up in TextEdit after it will become red. If I don't select it, all other message come up in TextEdit will become black color as default. So how can I fix it? I want only the error message has red color only. I try to do like this but it didn't fix the problem of other message become red also if I highlight the error message in TextEdit.

QString tag1 = "<font color = 'red'>";
tag1.append(error);
tag1.append("</font><font color = 'black'></font>");
read_textEdit->append(tag1);