I have a plasmoid-application which utilises an objects of the Plasma::TextEdit
class. And now I could to colorize a text in this objects. I had tried to do this:
m_text->nativeWidget()->setHtml("<font color=\"#777777\">some text</font><br/>other text");
with a couple of variants (like using the span
tag with the stile
attribute instead of the font
, using the red
color name instead the #777777
), but result was the same.
Any ideas?