Qt 6.11 is out! See what's new in the release
blog
how to set the color of 1 colum of the QTreeWidgetItem?
-
how to set the color of 1 colum of the QTreeWidgetItem?
background color, and border-color@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
QTreeViewhas 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 customQStyledItemDelegatethat you then apply on the widget