When QTableView edit control is visible for the current item the shylesheet of the edit takes place. When there is no active edit control in the QTableVie
You need to create a new delegate, that renders itself based on the data model (custom role, for example). You need to base its style on a special control created for the purpose (that can be changed via stylesheet) . I'll post some code when I find time.
One can use variadic templates, and crtp (Coplien) to good effect to layer one's delegates