Hi jpn,
I thought it would be possible that only the paint() in the delegate has to know which month to present / paint.
The parent of the delegate is the main class which holds a QDate to present the current first date for the current month to be displayed in the calendar.
I could populate the model with 6 weeks valid QDates, but why, when all that is needed is to display the numbers and some coloring which has to be done by the delegate anyway.
Something wrong with this logic?
Bookmarks