Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Calendar type on Qt Quick Controls 2
Qt 6.11 is out! See what's new in the release blog

Calendar type on Qt Quick Controls 2

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 3 Posters 4.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    deleted357
    wrote on last edited by deleted357
    #1

    Hi,

    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?

    Thanks.

    ekkescornerE E 2 Replies Last reply
    0
    • D deleted357

      Hi,

      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?

      Thanks.

      ekkescornerE Offline
      ekkescornerE Offline
      ekkescorner
      Qt Champions 2016
      wrote on last edited by
      #2

      @safi_bachelet
      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:
      https://github.com/ekke/biz_data_x
      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

      ekke ... Qt Champion 2016 | 2024 ... mobile business apps

      1 Reply Last reply
      1
      • D deleted357

        Hi,

        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?

        Thanks.

        E Offline
        E Offline
        Eeli K
        wrote on last edited by
        #3

        @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.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved