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 )
raven-worx Moderators last edited by
"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.
tobias.hunger last edited by
Or you change the color in the model. That goes against the MVC paradigm, but might be faster to do.