Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Calendar type on Qt Quick Controls 2
safi_bachelet last edited by safi_bachelet
I wanted to use the type Calendar in Qt Quick Controls 2 but I realized that there isn't the type Calendar in Qt Quick Controls 2, see https://doc.qt.io/qt-5/qtquickcontrols2-differences.html#type-comparison-table
There is Qt Labs Calendar which provides a set of types that can be used to build calendars (MonthGrid, DayOfWeek, and WeekNumberColumn) but there are experimental unstyled building blocks for calendar views , see http://doc.qt.io/archives/qt-5.7/qt-labs-calendar2-qmlmodule.html
Is there not a better solution to use the Calendar type on Qt Quick Controls 2?
And if there is only this solution (Qt Labs Calendar), is it relevant to put these experimental types in a professional solution?
And would you have an example?
everything from qt.labs. can be changed and there's no guarantee API will be the same one day it will become part of controls2.
From my experiences you can use it in a professional solution. It's already part of some of my mobile business apps I built for SMBs and Enterprise.
there's also a example app for Android iOS:
Open the app, select 'Calendar' and you'll see a DayPicker, TimePicker and a Calendar Day View so you get the idea what's possible with current qt.labs calendar
this example app is part of my blog series https://appbus.wordpress.com/category/qt-for-mobile/overview/
from time to time I'm adding more content to the blog and examples in my spare time
Eeli K last edited by
@safi_bachelet You should also be able to use Controls 1 calendar in Control 2 app. I haven't tried it and it probably looks different than the rest of the app.