How to set 3 color in one column of QTreeWidgetItem?
-
use setData function with either decoration role or background role by passing the appropriate QColor value.
-
@opengpu2 I would not go down this path. At least I'd set it as Qt::BackgroundRole but, again, a custom delegate is the right solution.
Are the background colors dependant on the content of the cell?
-
@opengpu2 I would not go down this path. At least I'd set it as Qt::BackgroundRole but, again, a custom delegate is the right solution.
Are the background colors dependant on the content of the cell?
-
ok, if you describe how to determine the number of colours, how much space each colour should take in the cell and how to determine the colour itself (I mean red, blue, yellow, etc.). I can draft a basic delegate up