Ok. Can't you use Disable / Enable property. I think, these properties should be there. The fields which are not editable, make it disabled and try setting the stylesheet. I haven't given a try, check out once.
I have done something similar for QMenu, Find some snippets below regarding it. Hope it helps!
.
QMenu::item:!disabled
:selected
{ }
.QMenu::item:!disabled:selected { }
To copy to clipboard, switch view to plain text mode
.
QMenu::item:disabled, .
QMenu::item:disabled
:selected
{ }
.QMenu::item:disabled, .QMenu::item:disabled:selected { }
To copy to clipboard, switch view to plain text mode
Bookmarks