changing a single strings color within a qtextedit python code example Example: set colour to inserplaintext qtextedit in python edit->textCursor().insertText(text);