This is a good point about QML integration, but unfortunately the model in that example doesn't really behave like a model, because
Calendar
already has its own model (for days in the month). Instead, it just gets a list of events (a
QList<QObject*>
model). It was recently changed to simply be a
QObject
because of this fact:
codereview.qt-project.org/#/c/145253 —
Mitch 56 secs ago