I'm trying to change the color of a QTextEdit to black, regardless if there's text or none, to give it a terminal look. It seems to me that the default white background color of QTextEdit (PyQy4) can't be changed by means that are otherwise working for other Qt widgets. I have tried the following:
w.setTextBackgroundColor(QColor(0,0,0))
w.setAutoFillBackground(True)
p = w.palette()
p.setColor(w.backgroundRole(), QColor(0,0,0))
w.setPalette(p)
viewport()
worked.setStyleSheet()
didn't tho. – Respectable