How to set text color of QTextEdit in PyQt5
Unsolved
Language Bindings
-
Hi, how to set the text color of the QTextEdit in PyQt5. Using style sheet I can only change the background color.
-
@QtFranchise said in How to set text color of QTextEdit in PyQt5:
Using style sheet I can only change the background color.
Is that really the case? Did you try setting the
color
CSS attribute?If that really does not work on a
QTextEdit
, you will either have to do it in code via aQPalette
, or since theQTextEdit
accepts HTML/rich text do it in HTML. -
@JonB . Yes Sure
-
Hi,
What color do you want to change ?
The text color ?
The background ?
Both ?