Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Diluka last edited by
I need some help for my Qt Application .In my application i had QTableView in this table contain two columns when application load column 2 value greater than column 1 value i want to change that row color into red if any one have idea about that ? or any experience about that ?(specially i want to know what kind of techniques i want to follow to achieve my target )
"QStyledItemDelegate":http://qt-project.org/doc/qt-4.8/qstyleditemdelegate.html is your friend in that case.
There are some examples available. But basically you just need to rewrite the paint method in the delegate.
Or you change the color in the model. That goes against the MVC paradigm, but might be faster to do.