Answer the question
In order to leave comments, you need to log in
How to change only background color in TextBrowser in qtCreator??
here is the code, but it will change color and scroll
ui->textBrowser->setStyleSheet("background: black");
Answer the question
In order to leave comments, you need to log in
There is a variant for QTextEdit, check if it works for you:
Instead of QTextEdit try QTextBrowser .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question