D
D
dimoSSHka2019-06-11 13:46:45
C++ / C#
dimoSSHka, 2019-06-11 13:46:45

How to change only background color in TextBrowser in qtCreator??

5cff864ebd081270399165.png5cff8653a17a7235832231.png
here is the code, but it will change color and scroll

ui->textBrowser->setStyleSheet("background: black");

how to write it in html? background-color:#FFE0C7;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ronald McDonald, 2019-06-11
@dimoSSHka

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 question

Ask a Question

731 491 924 answers to any question