Appointments are stored in textfiles. When you double click a date you get a little editor which stores it's stuff on disk when ready. It only needs to know the date for the filename. I have functions to convert between QDate and QModelIndex.
The paint() checks if a file exists and colors the cell accordingly.
The model's only purpose is to make that tableview work, I don't actualy need the QStandardItems in it. I just need the display and the events like currentchanged() and activated().
Am I that crazy?
Bookmarks