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

    • All
    • c6bd13ab3d88baaef40675e8a14b74c42fa593e9 (qt/qtbase/dev) 810a169f7830be2c6daaf212963b501e42b58915 (qt/qtbase/6.2) 11705b9f06e01bbc30ebd9cb211a8aa1c5ad5209 (qt/qtbase/6.2.1)

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes