An element delegate does not necessarily modify the data; it simply displays the data. Also, if you are using Qt 4.4 or later, look at QStyledItemDelegate instead - this is a theme and will look better.
Here is an example of delegate elements in this article (which seems to be a mirror of the official documentation that is now missing or gone).
Since all you really want to do is customize the text, did you consider using the proxy model and just return your custom QString for the DisplayRole date column?
Chrisv
source share