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. Where is the QML Calendar?

Where is the QML Calendar?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 4 Posters 1.5k 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.
  • A Offline
    A Offline
    AlainBo
    wrote on last edited by
    #1

    Hello,

    I'm new in Qt and I wanted to test the Calendar Widget using Qt Designer.
    I'm running Qt Creator 4.11.0 and Desktop Qt 5.12.6 MinGW 64 bits.

    I've imported the following in my project:
    import QtQuick 2.12
    import QtQuick.Window 2.12
    import QtQuick.Controls 2.3

    According to the Doc, it seems that the Calendar is available from QtQuick.Controls 1.4.

    I guess that QtQuick.Controls 2.3 is newer than QtQuick.Controls 1.4 :-/

    Anyway, I cannot see it in the available QML types and when I try to insert it manually, I get the error 'Unknown component (M300)'.

    What's wrong?

    Alain

    1 Reply Last reply
    0
    • IntruderExcluderI Offline
      IntruderExcluderI Offline
      IntruderExcluder
      wrote on last edited by
      #2

      Calendar and all supporting types are located now under labs module.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AlainBo
        wrote on last edited by
        #3

        Hello,

        Thanks for your answer so I tried the one available in labs module but when I try to instantiate it in the Designer, I get an error about unknown or incorrect property "x". :-|
        Don't really remember the exact message but that doesn't work!

        Pradeep P NP 1 Reply Last reply
        0
        • A AlainBo

          Hello,

          Thanks for your answer so I tried the one available in labs module but when I try to instantiate it in the Designer, I get an error about unknown or incorrect property "x". :-|
          Don't really remember the exact message but that doesn't work!

          Pradeep P NP Offline
          Pradeep P NP Offline
          Pradeep P N
          wrote on last edited by
          #4

          Hi @AlainBo
          You can use import QtQuick.Controls 1.4 which is simple.
          with import Qt.labs.calendar 1.0 customizing the component is not easy as with Controls 1.4

          All the best.

          Pradeep Nimbalkar.
          Upvote the answer(s) that helped you to solve the issue...
          Keep code clean.

          1 Reply Last reply
          2
          • A Offline
            A Offline
            AlainBo
            wrote on last edited by
            #5

            Manu thanks @Pradeep-P-N . At least it works, which seems not to be the case of labs one.

            1 Reply Last reply
            0
            • B Offline
              B Offline
              betinajessen
              wrote on last edited by betinajessen
              #6

              Use Qt.formatDate for that. It accepts a calendar 2023 format string or a named standard format.

              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