Hello,
I try the QPalette code and it don't works. I was using setStyleSheet to set background of the Widget to black but it makes changing fonts imposible.
The code for QPalette:
textOut->setPalette(palette);
QPalette palette;
palette.setColor(QPalette::Window, QColor(Qt::red));
textOut->setPalette(palette);
To copy to clipboard, switch view to plain text mode
I changed "QPalette::Window" with "QPalette::Text" and others but it don't change text background color. I will try to explain what I need other time. I want to highlight some parts of text with different background colors. It's easy to change all widget background but I need only parts of text, the other text background must remain black.
Is not possible with QTextEdit?.
Thanx all
Bookmarks