QTreeWidgetItem. Colored text.
-
Hi
AS @SGaist says you need to do your own drawing of that.
Funny enough it seems to be exactly the same use case :)
-
Hi and welcome to the forums.
Your English is fine.One way is to use the
QBrush b (Qt::red);
item->setForeground( 0 , b ); -
Hi and welcome to the forums.
Your English is fine.One way is to use the
QBrush b (Qt::red);
item->setForeground( 0 , b ); -
@mrjj thx.. I knew about that, but need something different. My trouble - paint "new" and "item" with different colors. For example "new" - red, "item" - blue.
-
Hi,
You will need a QStyledItemDelegate and do the text painting yourself.
-
Hi
AS @SGaist says you need to do your own drawing of that.
Funny enough it seems to be exactly the same use case :)
-
Thx you all.
There was hope for some built-in functionality something like setHTML... But... Ok...
Think this thread can be marked as resolved.