Pythonself.readOnly(True)self.setTextInteractionFlags( Qt.TextBrowserInteraction | Qt.LinksAccessibleByKeyboard | Qt.LinksAccessibleByMouse | Qt.TextSelectableByKeyboard | Qt.TextSelectableByMouse)
Pythonp = self.viewport().palette()p.setColor(QPalette.Base, color)self.viewport().setPalette(p)