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

Change of QDateTimeEdit::setDateTime not documented in "Changes to Qt Modules in Qt 6"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.2.1
    • Labels:
      None
    • Platform/s:
      All
    • Commits:
      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

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

          Activity

            People

            Assignee:
            Eddy Edward Welbourne
            Reporter:
            starterkit Ivan Ivanov
            PM Owner:
            Vladimir Minenko Vladimir Minenko
            RnD Owner:
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes