Hello again,
my problem is the following: I have a custom sql table model inheriting from QSortFilterProxyModel and a view with a custom delegate onto this. The custom delegate colors certain elements in the table differently (to be exact, new table entries get colored red for 40 seconds). The problem is that the view won´t update using update() or repaint().
So when a new entry is added to the sql table, it shows up in my model. After it shows up there it is detected and the row is marked as "special" for the delegate. Now I call update() with the intention that the view will color the row red as expected ... but it doesn´t, basically nothing happens.
OTOH, if I force a resize call by resizing the window, or if i do another update of the underlying model, triggering an automatic update of the view, everything works as expected. It of course would look a bit dumb to let screen resize everytime I need an update .Is there anything special to consider when using custom delegates? I already checked multiple times that I haven´t accidently disabled updates or stuff like that.
Bookmarks