QTreeView - Item to have multiple colours
Unsolved
General and Desktop
-
Hello,
Is there a way that, I can set multiple colours on the item being displayed?
Example:
| --- Hello World | --- My Data |
In this, I want to show Hello in blue colour, World in red colour. And "My" in purple colour and "Data" in black colour.
How to achieve this?
Thanks for your help in advance.
--Kumara
-
hi @kumararajas ,
seems, you can achieve this using QStyledItemDelegate::paint(painter, newOption, index); .
Check this post.