PYQt5 QTextEdit Colored Tex5 code example Example: pyqt5 qtextedit change color of a specific line QTextEdit.setTextColor(QtGui.QColor('#FFFFFF'))