Qt 6.11 is out! See what's new in the release
blog
How to change background colour of modified cell in table view through delegate?
General and Desktop
2
Posts
2
Posters
2.2k
Views
1
Watching
-
Hi,
I have implemented delegate and model for table view. it is working fine.
Now i want to change the background colour of modified cell. ( when ever user modifies cell)
what is the best way of doing this? -
You'll need to somehow expose in your model that a cell is considdered 'changed'. That probably means using a data role for that. You can then let your delegate handle that data role, or just a simple proxy model to set the background role for these cells as well.