Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-75283

[B2Qt] default Timezone is not set

    XMLWordPrintable

    Details

    • Platform/s:
      Linux/Other display system

      Description

      By default the timezone is not set, so when the Calendar is used it is not enabled, because the start and end date is the same. Setting the timezone from the UI solves this issue.

      To reproduce:

      1. flash a toradex imx6 image
      2. run the code
      3. try to select a date

      expected result: the dates are enabled
      current result: the dates are disabled
      workaround: set the timezone

      import QtQuick 2.9
      import QtQuick.Window 2.2
      import QtQuick.Controls 1.4
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          Calendar {
              id: cal1
              selectedDate: new Date()
              Component.onCompleted: {
                  /*console.log(cal1.minimumDate);
                  console.log(cal1.maximumDate);
                  cal1.minimumDate = "1969-12-15";
                  cal1.maximumDate = "2020-12-31";
                  cal1.selectedDate = "1999-12-01";
                  console.log(cal1.minimumDate);
                  console.log(cal1.maximumDate);
                  console.log(cal1.locale.name);*/
                  //cal1.locale = Qt.locale("en_US")
              }
          }
      }
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            sapiippo Samuli Piippo
            Reporter:
            karimpinter Karim Pinter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes