PDA

View Full Version : Color some of the characters in a QStandardItem cell



Sabri
20th February 2018, 14:48
Hello,
I want to know how to color some characters in a cell in an array, I use QTableView with cells that contain QStandardItem.
Thank you!

wysota
25th February 2018, 07:24
You need a custom item delegate that will either do the drawing by itself that does what you want or will use QTextDocument API to render rich text.