QTextEdit code example
Example 1: qTextEdit get text
textboxValue = self.textbox.toPlainText()
Example 2: set colour to inserplaintext qtextedit in python
edit->textCursor().insertText(text);
textboxValue = self.textbox.toPlainText()
edit->textCursor().insertText(text);