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. How create Calendar in QML?
Forum Updated to NodeBB v4.3 + New Features

How create Calendar in QML?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 1.2k Views
  • 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.
  • M Offline
    M Offline
    Mihaill
    wrote on last edited by
    #1

    Hi! I use Qt 6.2.
    How I can create Calendar in QML?
    If i do this

    import QtQuick 2.15
    Item {
        width: 1000
        height: 550
    
        Calendar {
            id: calendar
            anchors.fill: parent
        }
    }
    

    then I get the error:

    Cyclic dependency detected between "qrc:/Calendar.qml" and "qrc:/CalendarForm.ui.qml"
    QQmlComponent: Component is not ready
    

    if do this:

    import QtQuick.Controls 1.15
    

    then get error:

    module "QtQuick.Controls" version 1.15 is not installed
    
    1 Reply Last reply
    0
    • oria66O Offline
      oria66O Offline
      oria66
      wrote on last edited by
      #2

      Hi. If you can wait to 6.3, there will be a Calendar ready to use. If not:

      https://www.ics.com/blog/creating-qml-controls-scratch-datepicker

      https://gist.github.com/ilnuribat/5cc6010aea7e35708ff90c65d7be5bcf

      Hope this can help

      The truth is out there

      1 Reply Last reply
      1
      • M Offline
        M Offline
        Mihaill
        wrote on last edited by
        #3

        I install Qt 6.3 alpha, but calendar not work

        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