how to set the color of 1 colum of the QTreeWidgetItem?
Unsolved
General and Desktop
-
@opengpu2 said in how to set the color of 1 colum of the QTreeWidgetItem?:
background color
item->setData(column,Qt::BackgroundRole,colour);
border-color
I don't think
QTreeView
has borders by default, you'll probably need to save the colour in a user role (item->setData(column,Qt::UserRole,colour);
) and then reimplementpaint()
an a customQStyledItemDelegate
that you then apply on the widget