Details
-
Task
-
Resolution: Fixed
-
P3: Somewhat important
-
5.14, 6.6
-
None
-
-
13
-
165f63878 (dev), 33cc65328 (dev), bbdf2b86f (6.7), f09edb531 (tqtc/lts-6.5), f071d4ee8 (dev), 98847d215 (dev)
-
Foundation Sprint 109, Foundation Sprint 110, Foundation Sprint 111
Description
We should have an example that explains how to write a plugin to implement a custom calendar backend for QCalendar. It should make clear that the backend API is, like the QPA, not subject to the usual compatibility promises.
A candidate example would be a (naïve – don't try to represent Sweden's transition) Julian-Gregorian calendar whose constructor takes a QDate at which to make the transition from Julian to Gregorian. (Unfortunately this can't use QJulianCalendar or QGregorianCalendar – they're not public API – so shall need to duplicate some code from them.)
Writing this example (and testing it works) may well uncover some things in need of fixing in the backend API.
Attachments
For Gerrit Dashboard: QTBUG-115200 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
554532,6 | Document calendar setting of QCalendarWidget and QDateTimeEdit | dev | qt/qtbase | Status: MERGED | +2 | 0 |
554535,3 | QCalendarBackend: link to the relevant plugin documentation | dev | qt/qtbase | Status: MERGED | +2 | 0 |
555245,31 | QCalendar example illustrating the user-supplied plugin mechanism | dev | qt/qtbase | Status: MERGED | +2 | 0 |
559746,2 | Document calendar setting of QCalendarWidget and QDateTimeEdit | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
559816,2 | Document calendar setting of QCalendarWidget and QDateTimeEdit | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
579652,3 | CMake: Fix project structure of calendarbackendplugin project | dev | qt/qtbase | Status: MERGED | +2 | 0 |