How to change the text color of a specific row in a QTreeWidget?
Unsolved
General and Desktop
-
@n34rt said in How to change the text color of a specific row in a QTreeWidget?:
Am I on the correct path?
No, because QFont does not specify text color.
https://doc.qt.io/qt-6/qtreewidgetitem.html#setForeground is what you're looking for... -
@n34rt Depends on what is in the cell, see https://doc.qt.io/qt-6/qtreewidgetitem.html#foreground
Why don't you simply try it out to see whether it does what you want?