Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.2
-
B2Qt Toradex imx6
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:
- flash a toradex imx6 image
- run the code
- 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") } } }