Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
6.0.0
-
None
-
-
c6bd13ab3d88baaef40675e8a14b74c42fa593e9 (qt/qtbase/dev) 810a169f7830be2c6daaf212963b501e42b58915 (qt/qtbase/6.2) 11705b9f06e01bbc30ebd9cb211a8aa1c5ad5209 (qt/qtbase/6.2.1)
Description
Hi,
QTBUG-71181 changed behavior of QDateTimeEdit::setDateTime starting from Qt 6. But this change isn't mentioned in https://doc.qt.io/qt-6/widgets-changes-qt6.html subpage of https://doc.qt.io/qt-6/modulechanges.html
Previosly in Qt5:
When setting this property the timespec of the QDateTimeEdit remains the same and the timespec of the new QDateTime is ignored.
Now in Qt6:
When setting this property, the new QDateTime is converted to the timespec of the QDateTimeEdit, which thus remains unchanged.
This is very confusing to find it after upgrade from Qt5 to Qt6 so I think it should be documented.
Attachments
For Gerrit Dashboard: QTBUG-97493 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
376909,4 | Mention a change to QDateTimeEdit::setDateTime() | dev | qt/qtbase | Status: MERGED | +2 | 0 |
376958,2 | Mention a change to QDateTimeEdit::setDateTime() | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |
376959,2 | Mention a change to QDateTimeEdit::setDateTime() | 6.2.1 | qt/qtbase | Status: MERGED | +2 | 0 |