Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Calendar Example shows incorrect date in March
Qt 6.11 is out! See what's new in the release blog

Calendar Example shows incorrect date in March

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 2 Posters 2.0k Views 2 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.
  • J Offline
    J Offline
    Java the Hutt
    wrote on last edited by Java the Hutt
    #1

    Hi, I have recently installed Qt Creator 4.4.0 on Windows 10 together with Qt5.6.2 (msvc2015_64) compiler kit.

    I have successfully built and run several of the examples supplied, and most work very well, including the Map Viewer and Planets Example. I can build the Calendar example (Qt Quick Controls) but when it runs, it duplicates a date in March; this year it's March 26th which appears twice. This then offsets the rest of the year by one day. I've had a quick look through the code, and can't see any obvious error in the code.

    Can anyone throw some light on this, as it doesn't give me much confidence in the supplied calendar doodah.

    Thanks.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      this one ?
      alt text

      I cannot make it show anything strange.
      (Qt 5.9)

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Java the Hutt
        wrote on last edited by
        #3

        0_1505592194616_10d6d3d4-5573-4a24-aa47-23c8d76d541d-image.png

        Nope, this one ... look at March 26th

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          Which one?
          I only have one QML sample.
          C:\Qt\Examples\Qt-5.9.1\quickcontrols\controls\calendar
          alt text

          1 Reply Last reply
          0
          • J Offline
            J Offline
            Java the Hutt
            wrote on last edited by
            #5

            M:\Software\Qt\Qt5.6.2\Examples\Qt-5.6\quickcontrols\controls\calendar

            Do I need to upgrade my compiler kit to 5.9?

            mrjjM 1 Reply Last reply
            0
            • J Java the Hutt

              M:\Software\Qt\Qt5.6.2\Examples\Qt-5.6\quickcontrols\controls\calendar

              Do I need to upgrade my compiler kit to 5.9?

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by mrjj
              #6

              @Java-the-Hutt
              Well you could install it along side 5.6 and see if it was a bug they have fixed.

              If you dont need 5.6, then please use 5.9 as its also long term supported and
              no reason to stay on 5.6.

              You can use the maintenance tool to easy add/remove Qt versions.
              Mutiple can be installed if needed.

              1 Reply Last reply
              0
              • J Offline
                J Offline
                Java the Hutt
                wrote on last edited by
                #7

                OK, I will try 5.9 to see if it changes things.

                Thanks for your help. :)

                mrjjM 1 Reply Last reply
                0
                • J Java the Hutt

                  OK, I will try 5.9 to see if it changes things.

                  Thanks for your help. :)

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @Java-the-Hutt
                  super. it seems so but cant promise :)

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    Java the Hutt
                    wrote on last edited by
                    #9

                    0_1505600299080_6b7f4ec2-a13d-4959-9846-b004559ced51-image.png

                    M:\Software\Qt\Examples\Qt-5.9.1\quickcontrols\controls

                    No special reason, I just tried it to see what would happen.....
                    (5.9.2 kit building 5.6.2 example.....)

                    0_1505601559512_8afe0a02-f1d8-4a1c-9f4e-e70c9e14c18b-image.png

                    Starting: "M:\Software\Qt\5.9.2\mingw53_32\bin\qmake.exe" M:\Software\Qt\Qt5.6.2\Examples\Qt-5.6\quickcontrols\controls\calendar\calendar.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug"

                    Problem solved, many thanks; I shall now continue being cute.

                    1 Reply Last reply
                    1

                    • Login

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