How to change background and font color of QTreeView using HTML code
Hi, i wanna know it it's possible to change background and font color of QTreeView using html code,
I know its possible using css like this
Code:
{background-color: yellow;}");
but, can it be done with html code something like this
Code:
<QTreeView style="background-color:grey;">
Re: How to change background and font color of QTreeView using HTML code
Quote:
can it be done with html code something like this
No. Style sheets use css, not html. Maybe you are confusing this with the Rich Text HTML subset which is used to customize the text strings in QLineEdit, QTextEdit and other text-based widgets.
You could always define your own XML-based language for defining styles, but your software would have to parse that and translate it into Qt's variant of css before you could apply it as a widget style.