Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.12.2, 5.12.5
-
Windows 10
Qt 5.12.2 and 5.12.5
-
-
60deb69034e3d3ac36213ad8c36042ad57c495f7 (qt/qtbase/5.15)
Description
Hi,
In a qml object I set a property of type date, not initialized, called selectedDate (for instance)
I change its value to 1/1/1970 from a string using Date.fromLocaleDateString
the signal "onSelectedDateChanged" is not called.
If I set it to any other valid value the signal is called
If I then set it to 1/1/1970 (or 01/01/1970), the signl is called.
Attached a Qt creator project to reproduce it.
you can enter the date in a TextEdit and validate it by clicking a button.
The onEditingFinished signal of the TextEdit tests the validity of the date inserted and set it to the date property selectedDate and displays a text to say so
onSelectedDateChanged signal should then be called and display a text.
When the first valid date I enter is 1/1/1970, the onEditingFinished text is displayed but not the onSelectedDateChanged text.
When entering any other valid date, both texts are displayed
When entering 1/1/1970 again, both texts are displayed
Attachments
Issue Links
- is duplicated by
-
QTBUG-82853 QDateTime(1/1/1970 00:00:00) compares equal to QDateTime()
- Closed