I'm implementing a qTableView/Model where I want some of the table cells to be editable, and others to be simply for display. I can control this with the flags() function. But I'd like the editable cells to use a different text color, so their editable status is visually apparent.What is the simplest way to accomplish this?

If the only way to do this is to subclass a custom delegate, is it possible to just set the brush in the paint() routine to the color I want (based on the model index) and then call the parent paint routine? Or will the parent perform a save()/restore() and wipe out my modifications?

I'm hoping such subclassing isn't necessary in the first place.